Changeset 391 for python/trunk/Doc/library/ossaudiodev.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/ossaudiodev.rst
r2 r391 18 18 use ALSA, you'll have to make sure its OSS compatibility layer 19 19 is active to use ossaudiodev, but you're gonna need it for the vast 20 majority of Linux audio apps anyway s.20 majority of Linux audio apps anyway. 21 21 22 22 Sounds like things are also complicated for other BSDs. In response … … 60 60 61 61 (If :mod:`ossaudiodev` receives an error from a system call such as 62 :c func:`open`, :cfunc:`write`, or :cfunc:`ioctl`, it raises :exc:`IOError`.62 :c:func:`open`, :c:func:`write`, or :c:func:`ioctl`, it raises :exc:`IOError`. 63 63 Errors detected directly by :mod:`ossaudiodev` result in :exc:`OSSAudioError`.) 64 64 … … 67 67 68 68 69 .. function:: open([device, ]mode) 69 .. function:: open(mode) 70 open(device, mode) 70 71 71 72 Open an audio device and return an OSS audio device object. This object … … 163 164 data written is always equal to the amount of data supplied. 164 165 165 The following methods each map to exactly one : func:`ioctl` system call. The166 The following methods each map to exactly one :c:func:`ioctl` system call. The 166 167 correspondence is obvious: for example, :meth:`setfmt` corresponds to the 167 168 ``SNDCTL_DSP_SETFMT`` ioctl, and :meth:`sync` to ``SNDCTL_DSP_SYNC`` (this can 168 169 be useful when consulting the OSS documentation). If the underlying 169 : func:`ioctl` fails, they all raise :exc:`IOError`.170 :c:func:`ioctl` fails, they all raise :exc:`IOError`. 170 171 171 172 … … 276 277 277 278 278 .. method:: oss_audio_device.setparameters(format, nchannels, samplerate 279 .. method:: oss_audio_device.setparameters(format, nchannels, samplerate[, strict=False]) 279 280 280 281 Set the key audio sampling parameters---sample format, number of channels, and … … 296 297 fmt = dsp.setfmt(fmt) 297 298 channels = dsp.channels(channels) 298 rate = dsp.rate( channels)299 rate = dsp.rate(rate) 299 300 300 301
Note:
See TracChangeset
for help on using the changeset viewer.