Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Side by Side Diff: Doc/library/ossaudiodev.rst

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/msilib.rst ('k') | Doc/library/pyexpat.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`ossaudiodev` --- Access to OSS-compatible audio devices 1 :mod:`ossaudiodev` --- Access to OSS-compatible audio devices
2 ============================================================= 2 =============================================================
3 3
4 .. module:: ossaudiodev 4 .. module:: ossaudiodev
5 :platform: Linux, FreeBSD 5 :platform: Linux, FreeBSD
6 :synopsis: Access to OSS-compatible audio devices. 6 :synopsis: Access to OSS-compatible audio devices.
7 7
8 8
9 This module allows you to access the OSS (Open Sound System) audio interface. 9 This module allows you to access the OSS (Open Sound System) audio interface.
10 OSS is available for a wide range of open-source and commercial Unices, and is 10 OSS is available for a wide range of open-source and commercial Unices, and is
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 repeats until *data* has been completely written. If the device is in blockin g 162 repeats until *data* has been completely written. If the device is in blockin g
163 mode (the default), this has the same effect as :meth:`write`; :meth:`writeal l` 163 mode (the default), this has the same effect as :meth:`write`; :meth:`writeal l`
164 is only useful in non-blocking mode. Has no return value, since the amount o f 164 is only useful in non-blocking mode. Has no return value, since the amount o f
165 data written is always equal to the amount of data supplied. 165 data written is always equal to the amount of data supplied.
166 166
167 .. versionchanged:: 3.2 167 .. versionchanged:: 3.2
168 Audio device objects also support the context manager protocol, i.e. they can 168 Audio device objects also support the context manager protocol, i.e. they can
169 be used in a :keyword:`with` statement. 169 be used in a :keyword:`with` statement.
170 170
171 171
172 The following methods each map to exactly one :func:`ioctl` system call. The 172 The following methods each map to exactly one :c:func:`ioctl` system call. The
173 correspondence is obvious: for example, :meth:`setfmt` corresponds to the 173 correspondence is obvious: for example, :meth:`setfmt` corresponds to the
174 ``SNDCTL_DSP_SETFMT`` ioctl, and :meth:`sync` to ``SNDCTL_DSP_SYNC`` (this can 174 ``SNDCTL_DSP_SETFMT`` ioctl, and :meth:`sync` to ``SNDCTL_DSP_SYNC`` (this can
175 be useful when consulting the OSS documentation). If the underlying 175 be useful when consulting the OSS documentation). If the underlying
176 :func:`ioctl` fails, they all raise :exc:`OSError`. 176 :c:func:`ioctl` fails, they all raise :exc:`OSError`.
177 177
178 178
179 .. method:: oss_audio_device.nonblock() 179 .. method:: oss_audio_device.nonblock()
180 180
181 Put the device into non-blocking mode. Once in non-blocking mode, there is n o 181 Put the device into non-blocking mode. Once in non-blocking mode, there is n o
182 way to return it to blocking mode. 182 way to return it to blocking mode.
183 183
184 184
185 .. method:: oss_audio_device.getfmts() 185 .. method:: oss_audio_device.getfmts()
186 186
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 .. method:: oss_mixer_device.set_recsrc(bitmask) 432 .. method:: oss_mixer_device.set_recsrc(bitmask)
433 433
434 Call this function to specify a recording source. Returns a bitmask indicati ng 434 Call this function to specify a recording source. Returns a bitmask indicati ng
435 the new recording source (or sources) if successful; raises :exc:`OSError` if an 435 the new recording source (or sources) if successful; raises :exc:`OSError` if an
436 invalid source was specified. To set the current recording source to the 436 invalid source was specified. To set the current recording source to the
437 microphone input:: 437 microphone input::
438 438
439 mixer.setrecsrc (1 << ossaudiodev.SOUND_MIXER_MIC) 439 mixer.setrecsrc (1 << ossaudiodev.SOUND_MIXER_MIC)
440 440
OLDNEW
« no previous file with comments | « Doc/library/msilib.rst ('k') | Doc/library/pyexpat.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+