Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
074472ba
Commit
074472ba
authored
Mar 10, 2003
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'. Formatting/typo fix.
parent
41a28e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
19 deletions
+31
-19
Doc/lib/libossaudiodev.tex
Doc/lib/libossaudiodev.tex
+31
-19
No files found.
Doc/lib/libossaudiodev.tex
View file @
074472ba
...
@@ -58,10 +58,11 @@ Setting up the device
...
@@ -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.
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment