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
|
To set up the device, three functions must be called in the correct
|
||||||
sequence:
|
sequence:
|
||||||
|
\begin{enumerate}
|
||||||
\code{setfmt} to set the output format,
|
\item \code{setfmt()} to set the output format,
|
||||||
\code{channels} to set the number of channels, and
|
\item \code{channels()} to set the number of channels, and
|
||||||
\code{speed} to set the sample rate.
|
\item \code{speed()} to set the sample rate.
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
The audio device objects are returned by \function{open()} define the
|
The audio device objects are returned by \function{open()} define the
|
||||||
following methods:
|
following methods:
|
||||||
@ -109,22 +110,33 @@ Raises \exception{IOError} if the IOCTL failed.
|
|||||||
Returns a bitmask of the audio output formats supported by the
|
Returns a bitmask of the audio output formats supported by the
|
||||||
soundcard. On a typical Linux system, these formats are:
|
soundcard. On a typical Linux system, these formats are:
|
||||||
|
|
||||||
AFMT_MU_LAW---a logarithmic encoding. This is the default format on
|
\begin{tableii}{l|l}{constant}{Format}{Description}
|
||||||
/dev/audio and is the format used by Sun .au files.
|
\lineii{AFMT_MU_LAW}
|
||||||
AFMT_A_LAW---a logarithmic encoding
|
{a logarithmic encoding. This is the default format on
|
||||||
AFMT_IMA_ADPCM---a 4:1 compressed format defined by the Interactive
|
/dev/audio and is the format used by Sun .au files.}
|
||||||
Multimedia Association.
|
\lineii{AFMT_A_LAW}
|
||||||
AFMT_U8---Unsigned, 8-bit audio.
|
{a logarithmic encoding}
|
||||||
AFMT_S16_LE---Unsigned, 16-bit audio, little-endian byte order (as used
|
\lineii{AFMT_IMA_ADPCM}
|
||||||
by Intel processors)
|
{a 4:1 compressed format defined by the Interactive Multimedia
|
||||||
AFMT_S16_BE---Unsigned, 16-bit audio, big-endian byte order (as used by
|
Association.}
|
||||||
68k, PowerPC, Sparc)
|
\lineii{AFMT_U8}
|
||||||
AFMT_S8---Signed, 8 bit audio.
|
{Unsigned, 8-bit audio.}
|
||||||
AFMT_U16_LE---Signed, 16-bit little-endian audio
|
\lineii{AFMT_S16_LE}
|
||||||
AFMT_U16_BE---Signed, 16-bit big-endian audio
|
{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
|
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}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[audio device]{setfmt}{format}
|
\begin{methoddesc}[audio device]{setfmt}{format}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user