Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/ossaudiodev.rst

    r2 r391  
    1818   use ALSA, you'll have to make sure its OSS compatibility layer
    1919   is active to use ossaudiodev, but you're gonna need it for the vast
    20    majority of Linux audio apps anyways.
     20   majority of Linux audio apps anyway.
    2121
    2222   Sounds like things are also complicated for other BSDs.  In response
     
    6060
    6161   (If :mod:`ossaudiodev` receives an error from a system call such as
    62    :cfunc:`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`.
    6363   Errors detected directly by :mod:`ossaudiodev` result in :exc:`OSSAudioError`.)
    6464
     
    6767
    6868
    69 .. function:: open([device, ]mode)
     69.. function:: open(mode)
     70              open(device, mode)
    7071
    7172   Open an audio device and return an OSS audio device object.  This object
     
    163164   data written is always equal to the amount of data supplied.
    164165
    165 The following methods each map to exactly one :func:`ioctl` system call.  The
     166The following methods each map to exactly one :c:func:`ioctl` system call.  The
    166167correspondence is obvious: for example, :meth:`setfmt` corresponds to the
    167168``SNDCTL_DSP_SETFMT`` ioctl, and :meth:`sync` to ``SNDCTL_DSP_SYNC`` (this can
    168169be 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`.
    170171
    171172
     
    276277
    277278
    278 .. method:: oss_audio_device.setparameters(format, nchannels, samplerate [, strict=False])
     279.. method:: oss_audio_device.setparameters(format, nchannels, samplerate[, strict=False])
    279280
    280281   Set the key audio sampling parameters---sample format, number of channels, and
     
    296297      fmt = dsp.setfmt(fmt)
    297298      channels = dsp.channels(channels)
    298       rate = dsp.rate(channels)
     299      rate = dsp.rate(rate)
    299300
    300301
Note: See TracChangeset for help on using the changeset viewer.