Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'. Formatting/typo fix.
This commit is contained in:
parent
41a28e374c
commit
074472ba98
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user