i = AOUT_VOLUME_MAX;
}
config_PutInt( p_object, "volume", i );
- config_PutInt( p_object, "saved-volume", i );
+ var_Create( p_object->p_libvlc, "saved-volume", VLC_VAR_INTEGER );
+ var_SetInteger( p_object->p_libvlc, "saved-volume" , i );
if ( pi_volume != NULL ) *pi_volume = (audio_volume_t)i;
if ( p_aout == NULL ) return 0;
i = AOUT_VOLUME_MIN;
}
config_PutInt( p_object, "volume", i );
- config_PutInt( p_object, "saved-volume", i );
+ var_Create( p_object->p_libvlc, "saved-volume", VLC_VAR_INTEGER );
+ var_SetInteger( p_object->p_libvlc, "saved-volume", i );
if ( pi_volume != NULL ) *pi_volume = (audio_volume_t)i;
if ( p_aout == NULL ) return 0;
{
/* Mute */
i_result = aout_VolumeSet( p_object, AOUT_VOLUME_MIN );
- config_PutInt( p_object, "saved-volume", (int)i_volume );
+ var_Create( p_object->p_libvlc, "saved-volume", VLC_VAR_INTEGER );
+ var_SetInteger( p_object->p_libvlc, "saved-volume", (int)i_volume );
if ( pi_volume != NULL ) *pi_volume = AOUT_VOLUME_MIN;
}
else
{
/* Un-mute */
- i_volume = (audio_volume_t)config_GetInt( p_object, "saved-volume" );
+ var_Create( p_object->p_libvlc, "saved-volume", VLC_VAR_INTEGER );
+ i_volume = (audio_volume_t)var_GetInteger( p_object->p_libvlc,
+ "saved-volume" );
i_result = aout_VolumeSet( p_object, i_volume );
if ( pi_volume != NULL ) *pi_volume = i_volume;
}