mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-25 20:42:13 +00:00
VideoPlayer's mediaPlayerReady listener called mediaPlayer.audio().setVolume(100) on every freshly created VLC player. On Windows, VLCJ routes setVolume through WASAPI's ISimpleAudioVolume, which is the per-app entry in the Windows Volume Mixer — so every video playback snapped SimpleX Chat's mixer volume back to 100%, overriding the user's own setting. The call was also redundant: VLCJ's default volume for a new MediaPlayer is already 100, and the only path that previously used setVolume (enableSound) has been disabled since VLCJ issue #985 ("Impossible to change volume for only one player. It changes for every player."). Dropping the setVolume(100) line fixes the Windows regression without changing playback loudness on any platform. AudioPlayer / SoundPlayer / CallSoundsPlayer use a singleton VLC player and never called setVolume, so voice messages and ringtones are unaffected. Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>