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
7a65a26f
Commit
7a65a26f
authored
Jun 27, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate documentation of SUNAUDIODEV from sunaudiodev; this mirrors
similar constructs elsewhere (al/AL, gl/GL/DEVICE).
parent
14ae4b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
Doc/lib/libsunaudio.tex
Doc/lib/libsunaudio.tex
+24
-11
No files found.
Doc/lib/libsunaudio.tex
View file @
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