1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

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
parent ea8c6e796f
commit 11a4fa6067

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);
}