瀏覽代碼

MacOSX/Framework/VLCMediaPlayer: Publish -audio.

Pierre d'Herbemont 17 年之前
父節點
當前提交
c5b79384d6
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 2 0
      Headers/Public/VLCMediaPlayer.h
  2. 5 0
      Sources/VLCMediaPlayer.m

+ 2 - 0
Headers/Public/VLCMediaPlayer.h

@@ -108,6 +108,8 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
 
 @property float rate;
 
+@property (readonly) VLCAudio * audio;
+
 /* Video Information */
 - (NSSize)videoSize;
 - (BOOL)hasVideoOut;

+ 5 - 0
Sources/VLCMediaPlayer.m

@@ -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 );