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
7a65a26f
Kaydet (Commit)
7a65a26f
authored
Haz 27, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Separate documentation of SUNAUDIODEV from sunaudiodev; this mirrors
similar constructs elsewhere (al/AL, gl/GL/DEVICE).
üst
14ae4b48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
libsunaudio.tex
Doc/lib/libsunaudio.tex
+24
-11
No files found.
Doc/lib/libsunaudio.tex
Dosyayı görüntüle @
7a65a26f
...
...
@@ -11,7 +11,11 @@ audio hardware is capable of recording and playing back audio data
in u-LAW
\index
{
u-LAW
}
format with a sample rate of 8K per second. A
full description can be found in the
\manpage
{
audio
}{
7I
}
manual page.
The module defines the following variables and functions:
The module
\refmodule
[sunaudiodev-constants]
{
SUNAUDIODEV
}
\refstmodindex
{
SUNAUDIODEV
}
defines constants which may be used with this module.
This module defines the following variables and functions:
\begin{excdesc}
{
error
}
This exception is raised on all errors. The argument is a string
...
...
@@ -34,8 +38,7 @@ calculated by appending ``ctl'' to the base audio device.
\end{funcdesc}
\subsection
{
Audio Device Objects
}
\label
{
audio-device-objects
}
\subsection
{
Audio Device Objects
\label
{
audio-device-objects
}}
The audio device objects are returned by
\function
{
open()
}
define the
following methods (except
\code
{
control
}
objects which only provide
...
...
@@ -111,15 +114,8 @@ If there is enough buffer space free it will immediately return,
otherwise it will block.
\end{methoddesc}
There is a companion module,
\module
{
SUNAUDIODEV
}
\refstmodindex
{
SUNAUDIODEV
}
, which defines useful
symbolic constants like
\constant
{
MIN
_
GAIN
}
,
\constant
{
MAX
_
GAIN
}
,
\constant
{
SPEAKER
}
, etc. The names of the constants are the same names
as used in the C include file
\code
{
<sun/audioio.h>
}
, with the
leading string
\samp
{
AUDIO
_}
stripped.
The audio device supports asynchronous notification of various events,
through the SIGPOLL signal. Here's an example of how you might enable
through the SIGPOLL signal. Here's an example of how you might enable
this in Python:
\begin{verbatim}
...
...
@@ -131,3 +127,20 @@ import fcntl, signal, STROPTS
signal.signal(signal.SIGPOLL, handle
_
sigpoll)
fcntl.ioctl(audio
_
obj.fileno(), STROPTS.I
_
SETSIG, STROPTS.S
_
MSG)
\end{verbatim}
\section
{
\module
{
SUNAUDIODEV
}
---
Constants used with
\module
{
sunaudiodev
}}
\declaremodule
[sunaudiodev-constants]
{
standard
}{
SUNAUDIODEV
}
\platform
{
SunOS
}
\modulesynopsis
{
Constants for use with
\refmodule
{
sunaudiodev
}
.
}
This is a companion module to
\refmodule
{
sunaudiodev
}
\refbimodindex
{
sunaudiodev
}
which defines
useful symbolic constants like
\constant
{
MIN
_
GAIN
}
,
\constant
{
MAX
_
GAIN
}
,
\constant
{
SPEAKER
}
, etc. The names of the
constants are the same names as used in the C include file
\code
{
<sun/audioio.h>
}
, with the leading string
\samp
{
AUDIO
_}
stripped.
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