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

OSX: set volume on playlist

parent f1330ca6
......@@ -420,10 +420,13 @@
- (IBAction)volumeSliderUpdated:(id)sender
{
intf_thread_t * p_intf = VLCIntf;
playlist_t * p_playlist = pl_Hold( p_intf );
audio_volume_t i_volume = (audio_volume_t)[sender intValue];
int i_volume_step = 0;
int i_volume_step;
i_volume_step = config_GetInt( p_intf->p_libvlc, "volume-step" );
aout_VolumeSet( p_intf, i_volume * i_volume_step );
aout_VolumeSet( p_playlist, i_volume * i_volume_step );
pl_Release( p_playlist );
/* Manage volume status */
[o_main manageVolumeSlider];
}
......
......@@ -1612,7 +1612,10 @@ static void manage_cleanup( void * args )
- (void)manageVolumeSlider
{
audio_volume_t i_volume;
aout_VolumeGet( p_intf, &i_volume );
playlist_t * p_playlist = pl_Hold( p_intf );
aout_VolumeGet( p_playlist, &i_volume );
pl_Release( p_intf );
if( i_volume != i_lastShownVolume )
{
......
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