[vlc-commits] MacOS gui: use aout_Volume* functions
Jean-Baptiste Kempf
git at videolan.org
Fri Dec 9 14:45:56 CET 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 6 13:08:24 2011 +0100| [0f3ee76af70c5e27ca9fe67238a59a3cc594cf93] | committer: Jean-Baptiste Kempf
MacOS gui: use aout_Volume* functions
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0f3ee76af70c5e27ca9fe67238a59a3cc594cf93
---
modules/gui/macosx/CoreInteraction.m | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index b55009b..a9a9eb1 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -392,17 +392,20 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
- (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
{
- 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
{
- var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_MUTE );
+ playlist_t * p_playlist = pl_Get( VLCIntf );
+ aout_ToggleMute( p_playlist, NULL );
}
- (BOOL)isMuted
More information about the vlc-commits
mailing list