commit | 0b6dfb808cf3b6738bf92427b01c82856f7d5ef6 | [log] [tgz] |
---|---|---|
author | Greg Ward <gward@python.net> | Mon Mar 10 03:17:06 2003 +0000 |
committer | Greg Ward <gward@python.net> | Mon Mar 10 03:17:06 2003 +0000 |
tree | fe90dd1f88fe261f95220780a1ea3fd65089d897 | |
parent | f882c77d706841fcc0c9728bb3908563ba774403 [diff] |
<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.