Commit 26b6b8a1 authored by Olivier Teulière's avatar Olivier Teulière

* skins2: use AOUT_VOLUME_MAX / 2 instead of AOUT_VOLUME_MAX, for the maximum

           volume.
parent c63dbfbd
......@@ -213,7 +213,7 @@ void VlcProc::manage()
// Refresh sound volume
audio_volume_t volume;
aout_VolumeGet( getIntf(), &volume );
pVolume->set( (double)volume / AOUT_VOLUME_MAX );
pVolume->set( (double)volume * 2.0 / AOUT_VOLUME_MAX );
// Set the mute variable
pVarMute->set( volume == 0 );
......
......@@ -33,7 +33,7 @@ Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf )
// Initial value
audio_volume_t val;
aout_VolumeGet( getIntf(), &val );
VarPercent::set( val / AOUT_VOLUME_MAX );
VarPercent::set( val * 2.0 / AOUT_VOLUME_MAX );
}
......@@ -45,7 +45,7 @@ void Volume::set( float percentage )
{
VarPercent::set( percentage );
aout_VolumeSet( getIntf(), (int)(get() * AOUT_VOLUME_MAX) );
aout_VolumeSet( getIntf(), (int)(get() * AOUT_VOLUME_MAX / 2.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