Commit 55bc65e1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCAudio: Code cleanup and use Objective-C 2.0 @property....

MacOSX/Framework/VLCAudio: Code cleanup and use Objective-C 2.0 @property. (Patch by Enrique Osuna).
parent 912df971
...@@ -26,21 +26,23 @@ ...@@ -26,21 +26,23 @@
/* Notification Messages */ /* 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; @class VLCLibrary;
// TODO: Documentation /**
* TODO: Documentation VLCAudio
*/
@interface VLCAudio : NSObject @interface VLCAudio : NSObject
{ {
VLCLibrary *library; //< Library to control audio for VLCLibrary * library; //< Library to control audio for
} }
/* Properties */ /* Properties */
- (void)setMute:(BOOL)value; - (void)setMute:(BOOL)value;
- (BOOL)isMuted;
- (void)setVolume:(int)value; @property (setter=setMute:) BOOL isMuted;
- (int)volume; @property (assign) int volume;
@end @end
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#import "VLCLibVLCBridging.h" #import "VLCLibVLCBridging.h"
/* Notification Messages */ /* Notification Messages */
NSString *VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged"; NSString * VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged";
/* libvlc event callback */ /* libvlc event callback */
// TODO: Callbacks // TODO: Callbacks
......
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