Commit 0fe3057f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: cohenrency for volume between FSC and main Controller. Solve the 1% issue reported by

Trax, close #1851.

Manual backport of [0ba671da]
parent f106114c
......@@ -916,7 +916,7 @@ void ControlsWidget::updateVolume()
/* Audio part */
audio_volume_t i_volume;
aout_VolumeGet( p_intf, &i_volume );
i_volume = ( i_volume * VOLUME_MAX )/ (AOUT_VOLUME_MAX/2);
i_volume = ( (i_volume + 1)* VOLUME_MAX )/ (AOUT_VOLUME_MAX/2);
int i_gauge = volumeSlider->value();
b_my_volume = false;
if( i_volume - i_gauge > 1 || i_gauge - i_volume > 1 )
......
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