From b2e5eb13bc08a0286782fed29455a66a037b46e5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Aug 2016 16:11:42 +0200 Subject: ao_wasapi: in exclusive mode do not output multichannel by default Exactly the same situation as with ao_alsa in commit 0b144eac (except that we can detect the situation better under wasapi). Essentially, wasapi will allow us to output any sample format, and not just the one configured by the user in the audio system settings. --- audio/out/ao_wasapi_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao_wasapi_utils.c b/audio/out/ao_wasapi_utils.c index 0e7dec885a..6218153bea 100644 --- a/audio/out/ao_wasapi_utils.c +++ b/audio/out/ao_wasapi_utils.c @@ -407,7 +407,7 @@ static bool search_channels(struct ao *ao, WAVEFORMATEXTENSIBLE *wformat) } entry = ao->channels; - if (ao_chmap_sel_adjust(ao, &chmap_sel, &entry)){ + if (ao_chmap_sel_adjust2(ao, &chmap_sel, &entry, !state->opt_exclusive)){ change_waveformat_channels(wformat, &entry); return true; } -- cgit v1.2.3