MacOSX/Framework/VLCMediaPlayer: Publish -audio.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 14 Jan 2008 17:48:36 +0000 (17:48 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 14 Jan 2008 17:48:36 +0000 (17:48 +0000)
extras/MacOSX/Framework/Headers/Public/VLCMediaPlayer.h
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m

index f588fa0..ea0441d 100644 (file)
@@ -108,6 +108,8 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
 
 @property float rate;
 
+@property (readonly) VLCAudio * audio;
+
 /* Video Information */
 - (NSSize)videoSize;
 - (BOOL)hasVideoOut;
index b3f1d84..4b726e5 100644 (file)
@@ -236,6 +236,11 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
     return (id)ret;
 }
 
+- (VLCAudio *)audio
+{
+    return [VLCLibrary audio];
+}
+
 - (void)setVideoAspectRatio:(char *)value
 {
     libvlc_video_set_aspect_ratio( instance, value, NULL );