]> granicus.if.org Git - python/commit
<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
authorGreg Ward <gward@python.net>
Mon, 10 Mar 2003 03:17:06 +0000 (03:17 +0000)
committerGreg Ward <gward@python.net>
Mon, 10 Mar 2003 03:17:06 +0000 (03:17 +0000)
commit0b6dfb808cf3b6738bf92427b01c82856f7d5ef6
treefe90dd1f88fe261f95220780a1ea3fd65089d897
parentf882c77d706841fcc0c9728bb3908563ba774403
<sys/soundcard.h> seems to exist on both Linux and FreeBSD, so include
it instead of the OS-specific <linux/soundcard.h> or <machine/soundcard.h>.

Mixers devices have an ioctl-only interface, no read/write -- so the
flags passed to open() don't really matter.  Thus, drop the 'mode'
parameter to openmixer() (ie. second arg to newossmixerobject()) and
always open mixers with O_RDWR.
Modules/ossaudiodev.c