mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 12:22:22 +00:00
mixer: keep user volume setting when --softvol is used
When --softvol is enabled, the volume set by the "volume" property is reset when changing to a new file or crossing ordered chapter boundaries. Fix this by explicitly restoring the volume on audio reinitialization. Now the behavior with --softvol should be the same as if a system mixer is used, and the volume should be persistent across file changes. This also works around an inconsistency with the mute flag. The frontend assumed the mute flag is persistent across file changes, which was not true with --softvol. If not resetting the volume on playing new files is undesired, it can be avoided by putting volume=100 in the mplayer config file.
This commit is contained in:
parent
670e72506a
commit
685fbf25fe