Prev: SUNOS ONLY
Up: SUNOS ONLY
Top: Top
10.1. Built-in module sunaudiodev
This module allows you to access the sun audio interface. The sun
audio hardware is capable of recording and playing back audio data
in U-LAW format with a sample rate of 8K per second. A full
description can be gotten with `man audio'.
The module defines the following variables and functions:
- error -- exception of module sunaudiodev
-
This exception is raised on all errors. The argument is a string
describing what went wrong.
- open (mode) -- function of module sunaudiodev
-
This function opens the audio device and returns a sun audio device
object. This object can then be used to do I/O on. The mode parameter
is one of
'r'
for record-only access, 'w'
for play-only
access, 'rw'
for both and 'control'
for access to the
control device. Since only one process is allowed to have the recorder
or player open at the same time it is a good idea to open the device
only for the activity needed. See the audio manpage for details.
Menu
- Audio device object methods