Lines Matching refs:audio
2 :mod:`ossaudiodev` --- Access to OSS-compatible audio devices
7 :synopsis: Access to OSS-compatible audio devices.
12 This module allows you to access the OSS (Open Sound System) audio interface.
14 the standard audio interface for Linux and recent versions of FreeBSD.
20 majority of Linux audio apps anyway.
32 > * This is an OSS (Linux) audio emulator.
38 audio interface. That's the great thing about standards, there are so
72 Open an audio device and return an OSS audio device object. This object
75 read/write semantics and those of OSS audio devices). It also supports a number
76 of audio-specific methods; see below for the complete list of methods.
78 *device* is the audio device filename to use. If it is not specified, this
95 audio device varies unpredictably across operating systems. -GW
111 Before you can write to or read from an audio device, you must call three
120 Alternately, you can use the :meth:`setparameters` method to set all three audio
124 The audio device objects returned by :func:`.open` define the following methods
130 Explicitly close the audio device. When you are done writing to or reading from
131 an audio device, you should explicitly close it. A closed device cannot be used
142 Read *size* bytes from the audio input and return them as a Python string.
143 Unlike most Unix device drivers, OSS audio devices in blocking mode (the
150 Write the Python string *data* to the audio device and return the number of
151 bytes written. If the audio device is in blocking mode (the default), the
159 Write the entire Python string *data* to the audio device: waits until the audio
181 Return a bitmask of the audio output formats supported by the soundcard. Some
188 | | files and :file:`/dev/audio`) |
195 | :const:`AFMT_U8` | Unsigned, 8-bit audio |
197 | :const:`AFMT_S16_LE` | Signed, 16-bit audio, little-endian byte |
200 | :const:`AFMT_S16_BE` | Signed, 16-bit audio, big-endian byte order |
203 | :const:`AFMT_S8` | Signed, 8 bit audio |
205 | :const:`AFMT_U16_LE` | Unsigned, 16-bit little-endian audio |
207 | :const:`AFMT_U16_BE` | Unsigned, 16-bit big-endian audio |
210 Consult the OSS documentation for a full list of audio formats, and note that
218 Try to set the current audio format to *format*---see :meth:`getfmts` for a
219 list. Returns the audio format that the device was set to, which may not be the
220 requested format. May also be used to return the current audio format---do this
221 by passing an "audio format" of :const:`AFMT_QUERY`.
234 Try to set the audio sampling rate to *samplerate* samples per second. Returns
241 | 8000 | default rate for :file:`/dev/audio` |
247 | 44100 | CD quality audio (at 16 bits/sample and 2 |
250 | 96000 | DVD quality audio (at 24 bits/sample) |
281 Set the key audio sampling parameters---sample format, number of channels, and
353 The remaining methods are specific to audio mixing: