diff options
author | Greg Ward <gward@python.net> | 2005-03-07 01:32:03 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2005-03-07 01:32:03 (GMT) |
commit | aa3bb89a5035e3915bd7d76e31a09c38d030294b (patch) | |
tree | 8b983004eabf09eb2f9f461ea7773305509ecebe /Doc | |
parent | 605db0d8c5e25bbfe205baa3210f0dc73825ffa9 (diff) | |
download | cpython-aa3bb89a5035e3915bd7d76e31a09c38d030294b.zip cpython-aa3bb89a5035e3915bd7d76e31a09c38d030294b.tar.gz cpython-aa3bb89a5035e3915bd7d76e31a09c38d030294b.tar.bz2 |
SF #818006: add useful read-only attributes to oss_audio_device object:
'closed', 'name', and 'mode' (as recommended by
http://python.org/doc/current/lib/bltin-file-objects.html).
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libossaudiodev.tex | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Doc/lib/libossaudiodev.tex b/Doc/lib/libossaudiodev.tex index 8c8e445..762acb7 100644 --- a/Doc/lib/libossaudiodev.tex +++ b/Doc/lib/libossaudiodev.tex @@ -115,7 +115,7 @@ three audio parameters at once. This is more convenient, but may not be as flexible in all cases. The audio device objects returned by \function{open()} define the -following methods: +following methods and (read-only) attributes: \begin{methoddesc}[audio device]{close}{} Explicitly close the audio device. When you are done writing to or @@ -289,6 +289,21 @@ Returns the number of samples that could be queued into the hardware buffer to be played without blocking. \end{methoddesc} +Audio device objects also support several read-only attributes: + +\begin{memberdesc}[audio device]{closed}{} +Boolean indicating whether the device has been closed. +\end{memberdesc} + +\begin{memberdesc}[audio device]{name}{} +String containing the name of the device file. +\end{memberdesc} + +\begin{memberdesc}[audio device]{mode}{} +The I/O mode for the file, either \code{"r"}, \code{"rw"}, or \code{"w"}. +\end{memberdesc} + + \subsection{Mixer Device Objects \label{mixer-device-objects}} The mixer object provides two file-like methods: |