Commit 8e8b8d7d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

skins2: clean volume step usage

parent 8f6a0158
......@@ -33,9 +33,10 @@
Volume::Volume( intf_thread_t *pIntf ): VarPercent( pIntf )
{
m_step = (float)config_GetInt( pIntf, "volume-step" ) / AOUT_VOLUME_MAX;
m_max = 200;
m_volumeMax = AOUT_VOLUME_DEFAULT * 2;
m_step = (float)config_GetInt( pIntf, "volume-step" )
/ (float)m_volumeMax;
// Initial value
float val = aout_VolumeGet( getIntf()->p_sys->p_playlist ) * 100.f;
......
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