summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2005-03-07 01:41:11 (GMT)
committerGreg Ward <gward@python.net>2005-03-07 01:41:11 (GMT)
commit50682d0f78a06cff01a9b769128e30c8e0e37c0c (patch)
treedeccd6922a7c042eec8cf97d75ab95e4b12b3ba7 /Doc
parent78be7df9e46ffff4ff97f25a0d68e6bb26e8fe3e (diff)
downloadcpython-50682d0f78a06cff01a9b769128e30c8e0e37c0c.zip
cpython-50682d0f78a06cff01a9b769128e30c8e0e37c0c.tar.gz
cpython-50682d0f78a06cff01a9b769128e30c8e0e37c0c.tar.bz2
SF #818006: merge from release24-maint branch: add useful read-only
attributes to oss_audio_device object: 'closed', 'name', and 'mode'.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libossaudiodev.tex17
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: