Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
074472ba
Kaydet (Commit)
074472ba
authored
Mar 10, 2003
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix two unformatted lists: one is now an 'enumerate' environment, the
other a 'tableii'. Formatting/typo fix.
üst
41a28e37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
19 deletions
+31
-19
libossaudiodev.tex
Doc/lib/libossaudiodev.tex
+31
-19
No files found.
Doc/lib/libossaudiodev.tex
Dosyayı görüntüle @
074472ba
...
...
@@ -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
}
...
...
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