summaryrefslogtreecommitdiffstats
path: root/Doc/library/ossaudiodev.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/ossaudiodev.rst')
-rw-r--r--Doc/library/ossaudiodev.rst58
1 files changed, 31 insertions, 27 deletions
diff --git a/Doc/library/ossaudiodev.rst b/Doc/library/ossaudiodev.rst
index 7be838b..e23b049 100644
--- a/Doc/library/ossaudiodev.rst
+++ b/Doc/library/ossaudiodev.rst
@@ -11,33 +11,33 @@ This module allows you to access the OSS (Open Sound System) audio interface.
OSS is available for a wide range of open-source and commercial Unices, and is
the standard audio interface for Linux and recent versions of FreeBSD.
-.. % Things will get more complicated for future Linux versions, since
-.. % ALSA is in the standard kernel as of 2.5.x. Presumably if you
-.. % use ALSA, you'll have to make sure its OSS compatibility layer
-.. % is active to use ossaudiodev, but you're gonna need it for the vast
-.. % majority of Linux audio apps anyways.
-.. %
-.. % Sounds like things are also complicated for other BSDs. In response
-.. % to my python-dev query, Thomas Wouters said:
-.. %
-.. % > Likewise, googling shows OpenBSD also uses OSS/Free -- the commercial
-.. % > OSS installation manual tells you to remove references to OSS/Free from the
-.. % > kernel :)
-.. %
-.. % but Aleksander Piotrowsk actually has an OpenBSD box, and he quotes
-.. % from its <soundcard.h>:
-.. % > * WARNING! WARNING!
-.. % > * This is an OSS (Linux) audio emulator.
-.. % > * Use the Native NetBSD API for developing new code, and this
-.. % > * only for compiling Linux programs.
-.. %
-.. % There's also an ossaudio manpage on OpenBSD that explains things
-.. % further. Presumably NetBSD and OpenBSD have a different standard
-.. % audio interface. That's the great thing about standards, there are so
-.. % many to choose from ... ;-)
-.. %
-.. % This probably all warrants a footnote or two, but I don't understand
-.. % things well enough right now to write it! --GPW
+.. Things will get more complicated for future Linux versions, since
+ ALSA is in the standard kernel as of 2.5.x. Presumably if you
+ use ALSA, you'll have to make sure its OSS compatibility layer
+ is active to use ossaudiodev, but you're gonna need it for the vast
+ majority of Linux audio apps anyways.
+
+ Sounds like things are also complicated for other BSDs. In response
+ to my python-dev query, Thomas Wouters said:
+
+ > Likewise, googling shows OpenBSD also uses OSS/Free -- the commercial
+ > OSS installation manual tells you to remove references to OSS/Free from the
+ > kernel :)
+
+ but Aleksander Piotrowsk actually has an OpenBSD box, and he quotes
+ from its <soundcard.h>:
+ > * WARNING! WARNING!
+ > * This is an OSS (Linux) audio emulator.
+ > * Use the Native NetBSD API for developing new code, and this
+ > * only for compiling Linux programs.
+
+ There's also an ossaudio manpage on OpenBSD that explains things
+ further. Presumably NetBSD and OpenBSD have a different standard
+ audio interface. That's the great thing about standards, there are so
+ many to choose from ... ;-)
+
+ This probably all warrants a footnote or two, but I don't understand
+ things well enough right now to write it! --GPW
.. seealso::
@@ -87,6 +87,10 @@ the standard audio interface for Linux and recent versions of FreeBSD.
second is required. This is a historical artifact for compatibility with the
older :mod:`linuxaudiodev` module which :mod:`ossaudiodev` supersedes.
+ .. XXX it might also be motivated
+ by my unfounded-but-still-possibly-true belief that the default
+ audio device varies unpredictably across operating systems. -GW
+
.. function:: openmixer([device])