From 99e178f1e8e2a6b9d7b3dd937f5214827f192c08 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 24 Nov 2012 21:40:48 +0100 Subject: ao_pulse: do not allow setting volume over 100% PulseAudio allows applications to set volume over 100%. To make this possible, the PulseAudio daemon raises the global system volume, and tries to lower other applications volumes. Unfortunately, this doesn't work out and doesn't manage to keep the effective volume level of these other applications. To make it short: this functionality invoked PulseAudio bugs. Disable it. This essentially reverts commit 85a64b. --- audio/out/ao_pulse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index 539dbfa640..7e561c9541 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -34,8 +34,8 @@ #define PULSE_CLIENT_NAME "mpv" -#define VOL_PA2MP(v) ((v) * 100 / PA_VOLUME_UI_MAX) -#define VOL_MP2PA(v) ((v) * PA_VOLUME_UI_MAX / 100) +#define VOL_PA2MP(v) ((v) * 100 / PA_VOLUME_NORM) +#define VOL_MP2PA(v) ((v) * PA_VOLUME_NORM / 100) struct priv { // PulseAudio playback stream object -- cgit v1.2.3