Browse Source

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

pull/2/head
Pierre d'Herbemont 19 years ago
parent
commit
55bc65e10e
  1. 16
      extras/MacOSX/Framework/Headers/Public/VLCAudio.h
  2. 2
      extras/MacOSX/Framework/Sources/VLCAudio.m

16
extras/MacOSX/Framework/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

2
extras/MacOSX/Framework/Sources/VLCAudio.m

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

Loading…
Cancel
Save