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.
This commit is contained in:
wm4 2012-11-24 21:40:48 +01:00
parent 4c21ad1f55
commit 99e178f1e8
1 changed files with 2 additions and 2 deletions

View File

@ -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