From e10727baa70b8b7cd3d0f3182f8346a72341e68f Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Thu, 19 Nov 2015 05:11:45 -0800 Subject: ao_wasapi: only report per-app volume in shared mode otherwise we were incorrectly adjusting the hardware master volume in exclusive mode with softvol=auto --- audio/out/ao_wasapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/out/ao_wasapi.c b/audio/out/ao_wasapi.c index 81b7535c4b..83e7f469df 100644 --- a/audio/out/ao_wasapi.c +++ b/audio/out/ao_wasapi.c @@ -341,7 +341,8 @@ static int control(struct ao *ao, enum aocontrol cmd, void *arg) return CONTROL_OK; case AOCONTROL_HAS_PER_APP_VOLUME: - return CONTROL_TRUE; + return state->share_mode == AUDCLNT_SHAREMODE_SHARED ? + CONTROL_TRUE : CONTROL_FALSE; case AOCONTROL_UPDATE_STREAM_TITLE: { MP_VERBOSE(state, "Updating stream title to \"%s\"\n", (char*)arg); wchar_t *title = mp_from_utf8(NULL, (char*)arg); -- cgit v1.2.3