mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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:
parent
4c21ad1f55
commit
99e178f1e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user