summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-05 21:07:34 +0200
committerwm4 <wm4@nowhere>2016-09-05 21:26:39 +0200
commit1d9032f011a57a31f6a8ccc40a0aba08a8e74e0d (patch)
treec463f43610d73a127e2f62a6a39a669c38c36fd9 /player
parent13786dc643fe250a9560792ef342751585ea15e9 (diff)
downloadmpv-1d9032f011a57a31f6a8ccc40a0aba08a8e74e0d.tar.bz2
mpv-1d9032f011a57a31f6a8ccc40a0aba08a8e74e0d.tar.xz
audio/out: deprecate "exclusive" sub-options
And introduce a global option which does this. Or more precisely, this deprecates the global wasapi and coreaudio options, and adds a new one that merges their functionality. (Due to the way the sub-option deprecation mechanism works, this is simpler.)
Diffstat (limited to 'player')
-rw-r--r--player/audio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/audio.c b/player/audio.c
index 89f75d9095..507ef4d218 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -382,6 +382,9 @@ static void reinit_audio_filters_and_output(struct MPContext *mpctx)
if (opts->audio_stream_silence)
ao_flags |= AO_INIT_STREAM_SILENCE;
+ if (opts->audio_exclusive)
+ ao_flags |= AO_INIT_EXCLUSIVE;
+
if (af_fmt_is_pcm(afs->output.format)) {
if (!opts->audio_output_channels.set ||
opts->audio_output_channels.auto_safe)