Browse Source

Restore API broken in 758cdf2e with deprecate flag

Felix Paul Kühne 9 years ago
parent
commit
220d46d1ab
3 changed files with 12 additions and 0 deletions
  1. 2 0
      Headers/Public/VLCAudio.h
  2. 5 0
      NEWS
  3. 5 0
      Sources/VLCAudio.m

+ 2 - 0
Headers/Public/VLCAudio.h

@@ -41,6 +41,8 @@ extern NSString *const VLCMediaPlayerVolumeChanged;
 @property (getter=isMuted) BOOL muted;
 @property (assign) int volume;
 
+- (void)setMute:(BOOL)value __attribute__((deprecated));
+
 - (void)volumeDown;
 - (void)volumeUp;
 @end

+ 5 - 0
NEWS

@@ -28,9 +28,14 @@ New APIs:
   - added selectors: isEqual:
                      hash
 
+- VLCAudio
+  - setMuted:
+
 Deprecated APIs:
 - VLCMediaPlayer
   - titles, chaptersForTitleIndex:, countOfTitles
+- VLCAudio
+  - setMute:
 
 Removed APIs:
 - VLCMedia:

+ 5 - 0
Sources/VLCAudio.m

@@ -76,6 +76,11 @@ NSString *const VLCMediaPlayerVolumeChanged = @"VLCMediaPlayerVolumeChanged";
     libvlc_audio_set_mute([self instance], value);
 }
 
+- (void)setMute:(BOOL)value
+{
+    [self setMuted:value];
+}
+
 - (BOOL)isMuted
 {
     return libvlc_audio_get_mute([self instance]);