Commit 940068e0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: match the volume % with the OSD

Close #3745
parent ca802f69
...@@ -164,7 +164,7 @@ void SoundWidget::libUpdateVolume() ...@@ -164,7 +164,7 @@ void SoundWidget::libUpdateVolume()
playlist_t *p_playlist = pl_Get( p_intf ); playlist_t *p_playlist = pl_Get( p_intf );
i_volume = aout_VolumeGet( p_playlist ); i_volume = aout_VolumeGet( p_playlist );
i_volume = ((i_volume + 1) * VOLUME_MAX ) / (AOUT_VOLUME_DEFAULT * 2); i_volume = (i_volume * VOLUME_MAX ) / (AOUT_VOLUME_DEFAULT * 2);
if ( i_volume - volumeSlider->value() != 0 ) if ( i_volume - volumeSlider->value() != 0 )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment