SoundPlayer: Allow volume output of up to 150%

Previously the volume slider could go up to 150% but the real
output volume stayed the same between 100% and 150%.
This commit is contained in:
Elyse 2021-10-30 21:38:12 -05:00 committed by Andreas Kling
commit 11a4fa6067
Notes: sideshowbarker 2024-07-18 01:13:08 +09:00

View file

@ -87,7 +87,7 @@ void Player::set_loop_mode(LoopMode mode)
void Player::set_volume(double volume)
{
m_volume = clamp(volume, 0, 1.0);
m_volume = clamp(volume, 0, 1.5);
m_audio_client_connection.set_self_volume(m_volume);
volume_changed(m_volume);
}