oss: Remove use of the soundcard.h header, OpenBSD no longer uses OSS

This commit is contained in:
Brad Smith 2023-02-03 18:38:20 -05:00
parent a41414e0e0
commit e0df0b6d74
3 changed files with 3 additions and 11 deletions

View File

@ -4,7 +4,7 @@ if enable_oss.disabled()
elif enable_oss.auto() and alsa_dep.found()
# don't bother auto-enabling OSS if ALSA is available
enable_oss = false
elif compiler.has_header('sys/soundcard.h') or compiler.has_header('soundcard.h')
elif compiler.has_header('sys/soundcard.h')
enable_oss = true
elif enable_oss.auto()
enable_oss = false

View File

@ -35,11 +35,7 @@
#include <stdlib.h>
#include <unistd.h>
#if defined(__OpenBSD__) || defined(__NetBSD__)
# include <soundcard.h>
#else /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
# include <sys/soundcard.h>
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
#include <sys/soundcard.h>
#define VOLUME_MIXER_OSS_DEFAULT "/dev/mixer"

View File

@ -39,11 +39,7 @@
#include <stdlib.h>
#include <unistd.h>
#if defined(__OpenBSD__) || defined(__NetBSD__)
# include <soundcard.h>
#else /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
# include <sys/soundcard.h>
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
#include <sys/soundcard.h>
/* We got bug reports from FreeBSD users who said that the two 24 bit
formats generate white noise on FreeBSD, but 32 bit works. This is