void CmdMute::execute()
{
- aout_TogleMute( getIntf(), NULL );
+ playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
+
+ aout_TogleMute( pPlaylist, NULL );
}
void CmdVolumeUp::execute()
{
- aout_VolumeUp( getIntf(), 1, NULL );
+ playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
+
+ aout_VolumeUp( pPlaylist, 1, NULL );
}
void CmdVolumeDown::execute()
{
- aout_VolumeDown( getIntf(), 1, NULL );
+ playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
+
+ aout_VolumeDown( pPlaylist, 1, NULL );
}
// Refresh sound volume
audio_volume_t volume;
- aout_VolumeGet( getIntf(), &volume );
+ aout_VolumeGet( getIntf()->p_sys->p_playlist, &volume );
Volume *pVolume = (Volume*)m_cVarVolume.get();
pVolume->set( (double)volume * 2.0 / AOUT_VOLUME_MAX );
{
// Initial value
audio_volume_t val;
- aout_VolumeGet( getIntf(), &val );
+
+ aout_VolumeGet( getIntf()->p_sys->p_playlist, &val );
VarPercent::set( val * 2.0 / AOUT_VOLUME_MAX );
}
{
VarPercent::set( percentage );
- aout_VolumeSet( getIntf(), (int)(get() * AOUT_VOLUME_MAX / 2.0) );
+ aout_VolumeSet( getIntf()->p_sys->p_playlist(),
+ (int)(get() * AOUT_VOLUME_MAX / 2.0) );
}
}