Browse Source

MacOSX/Framework/VLCAudio: Code cleanup and use Objective-C 2.0 @property. (Patch by Enrique Osuna).

Pierre d'Herbemont 17 years ago
parent
commit
1ab22d87c9
2 changed files with 10 additions and 8 deletions
  1. 9 7
      Headers/Public/VLCAudio.h
  2. 1 1
      Sources/VLCAudio.m

+ 9 - 7
Headers/Public/VLCAudio.h

@@ -26,21 +26,23 @@
 
 /* Notification Messages */
 /**
- * Standard notification messages that are emitted by VLCMedia object.
+ * Standard notification messages that are emitted by VLCAudio object.
  */
-extern NSString *VLCMediaPlayerVolumeChanged;
+extern NSString * VLCMediaPlayerVolumeChanged;
 
 @class VLCLibrary;
 
-// TODO: Documentation
+/**
+ * TODO: Documentation VLCAudio
+ */
 @interface VLCAudio : NSObject 
 {
-    VLCLibrary *library;    //< Library to control audio for
+    VLCLibrary * library;   //< Library to control audio for
 }
+
 /* Properties */
 - (void)setMute:(BOOL)value;
-- (BOOL)isMuted;
 
-- (void)setVolume:(int)value;
-- (int)volume;
+@property (setter=setMute:) BOOL isMuted;
+@property (assign) int volume;
 @end

+ 1 - 1
Sources/VLCAudio.m

@@ -26,7 +26,7 @@
 #import "VLCLibVLCBridging.h"
 
 /* Notification Messages */
-NSString *VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged"; 
+NSString * VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged"; 
 
 /* libvlc event callback */
 // TODO: Callbacks