mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
build: check for SNDCTL_DSP_HALT for oss-audio
At least NetBSD ossaudio(3) right now has SNDCTL_DSP_SETPLAYVOL support but does not support SNDCTL_DSP_HALT chocking at build time. NFCI on platforms where oss audio output is supported.
This commit is contained in:
parent
640c07fb19
commit
f19bafc0e4
@ -836,7 +836,7 @@ oss_opt = get_option('oss-audio').require(
|
||||
get_option('gpl'),
|
||||
error_message: 'the build is not GPL!',
|
||||
)
|
||||
features += {'oss-audio': cc.has_header_symbol('sys/soundcard.h', 'SNDCTL_DSP_SETPLAYVOL',
|
||||
features += {'oss-audio': cc.has_header_symbol('sys/soundcard.h', 'SNDCTL_DSP_HALT',
|
||||
required: oss_opt)}
|
||||
if features['oss-audio']
|
||||
sources += files('audio/out/ao_oss.c')
|
||||
|
Loading…
Reference in New Issue
Block a user