From a99b63db08306b34ef53f5a18807c811b64491a7 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Tue, 5 Jan 2016 18:40:35 -0800 Subject: ao_wasapi: use share_mode value instead of raw option opt_exclusive Previously used opt_exclusive option to decide which volume control code to run. The might not always reflect the actual state, for example if passthrough is used. Admittedly, none of the volume controls will work anyway with passthrough, but this is the right thing to do. --- audio/out/ao_wasapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 1c0e85b7bb..f56c853627 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -441,7 +441,7 @@ static int control(struct ao *ao, enum aocontrol cmd, void *arg) return CONTROL_OK; } - return state->opt_exclusive ? + return state->share_mode == AUDCLNT_SHAREMODE_EXCLUSIVE ? control_exclusive(ao, cmd, arg) : control_shared(ao, cmd, arg); } -- cgit v1.2.3