소스 검색

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%.
Elyse 3 년 전
부모
커밋
11a4fa6067
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Userland/Applications/SoundPlayer/Player.cpp

+ 1 - 1
Userland/Applications/SoundPlayer/Player.cpp

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