diff options
author | Greg Ward <gward@python.net> | 2003-03-10 00:24:42 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2003-03-10 00:24:42 (GMT) |
commit | 074472ba98b9f9b387e983236ac2c8deeaed2c29 (patch) | |
tree | 15835dfac6e2bc9d916e604983a4715bb65b0d50 /Doc/lib/libossaudiodev.tex | |
parent | 41a28e374cd3ecfd38bb731dd455a05fab5fdfa9 (diff) | |
download | cpython-074472ba98b9f9b387e983236ac2c8deeaed2c29.zip cpython-074472ba98b9f9b387e983236ac2c8deeaed2c29.tar.gz cpython-074472ba98b9f9b387e983236ac2c8deeaed2c29.tar.bz2 |
Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'.
Formatting/typo fix.
Diffstat (limited to 'Doc/lib/libossaudiodev.tex')
-rw-r--r-- | Doc/lib/libossaudiodev.tex | 50 |
1 files changed, 31 insertions, 19 deletions
diff --git a/Doc/lib/libossaudiodev.tex b/Doc/lib/libossaudiodev.tex index 47a8d56..1776616 100644 --- a/Doc/lib/libossaudiodev.tex +++ b/Doc/lib/libossaudiodev.tex @@ -58,10 +58,11 @@ Setting up the device To set up the device, three functions must be called in the correct sequence: - -\code{setfmt} to set the output format, -\code{channels} to set the number of channels, and -\code{speed} to set the sample rate. +\begin{enumerate} +\item \code{setfmt()} to set the output format, +\item \code{channels()} to set the number of channels, and +\item \code{speed()} to set the sample rate. +\end{enumerate} The audio device objects are returned by \function{open()} define the following methods: @@ -109,22 +110,33 @@ Raises \exception{IOError} if the IOCTL failed. Returns a bitmask of the audio output formats supported by the soundcard. On a typical Linux system, these formats are: -AFMT_MU_LAW---a logarithmic encoding. This is the default format on -/dev/audio and is the format used by Sun .au files. -AFMT_A_LAW---a logarithmic encoding -AFMT_IMA_ADPCM---a 4:1 compressed format defined by the Interactive -Multimedia Association. -AFMT_U8---Unsigned, 8-bit audio. -AFMT_S16_LE---Unsigned, 16-bit audio, little-endian byte order (as used -by Intel processors) -AFMT_S16_BE---Unsigned, 16-bit audio, big-endian byte order (as used by -68k, PowerPC, Sparc) -AFMT_S8---Signed, 8 bit audio. -AFMT_U16_LE---Signed, 16-bit little-endian audio -AFMT_U16_BE---Signed, 16-bit big-endian audio - +\begin{tableii}{l|l}{constant}{Format}{Description} +\lineii{AFMT_MU_LAW} + {a logarithmic encoding. This is the default format on + /dev/audio and is the format used by Sun .au files.} +\lineii{AFMT_A_LAW} + {a logarithmic encoding} +\lineii{AFMT_IMA_ADPCM} + {a 4:1 compressed format defined by the Interactive Multimedia + Association.} +\lineii{AFMT_U8} + {Unsigned, 8-bit audio.} +\lineii{AFMT_S16_LE} + {Unsigned, 16-bit audio, little-endian byte order (as used by + Intel processors)} +\lineii{AFMT_S16_BE} + {Unsigned, 16-bit audio, big-endian byte order (as used by 68k, + PowerPC, Sparc)} +\lineii{AFMT_S8} + {Signed, 8 bit audio.} +\lineii{AFMT_U16_LE} + {Signed, 16-bit little-endian audio} +\lineii{AFMT_U16_BE} + {Signed, 16-bit big-endian audio} +\end{tableii} Most systems support only a subset of these formats. Many devices only -support AFTM_U8; the most common format used today is AFMT_S16_LE. +support \code{AFMT_U8}; the most common format used today is +\code{AFMT_S16_LE}. \end{methoddesc} \begin{methoddesc}[audio device]{setfmt}{format} |