Commit 85cb638c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MacOS gui: use aout_Volume* functions

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 0f3ee76af70c5e27ca9fe67238a59a3cc594cf93)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 43a825e9
...@@ -392,17 +392,20 @@ static VLCCoreInteraction *_o_sharedInstance = nil; ...@@ -392,17 +392,20 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
- (void)volumeUp - (void)volumeUp
{ {
var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_UP ); playlist_t * p_playlist = pl_Get( VLCIntf );
aout_VolumeUp( p_playlist, 1, NULL );
} }
- (void)volumeDown - (void)volumeDown
{ {
var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_DOWN ); playlist_t * p_playlist = pl_Get( VLCIntf );
aout_VolumeDown( p_playlist, 1, NULL );
} }
- (void)mute - (void)mute
{ {
var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_MUTE ); playlist_t * p_playlist = pl_Get( VLCIntf );
aout_ToggleMute( p_playlist, NULL );
} }
- (BOOL)isMuted - (BOOL)isMuted
......
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