Commit 622be830 authored by David Fuhrmann's avatar David Fuhrmann

macosx: audio effects panel: migrate autosave and bugfixes from video effects panel

parent a3915ceb
...@@ -99,6 +99,8 @@ ...@@ -99,6 +99,8 @@
IBOutlet id o_filter_normLevel_sld; IBOutlet id o_filter_normLevel_sld;
IBOutlet id o_filter_normLevel_lbl; IBOutlet id o_filter_normLevel_lbl;
IBOutlet id o_filter_karaoke_ckb; IBOutlet id o_filter_karaoke_ckb;
NSInteger i_old_profile_index;
} }
/* generic */ /* generic */
...@@ -109,6 +111,8 @@ ...@@ -109,6 +111,8 @@
- (IBAction)addAudioEffectsProfile:(id)sender; - (IBAction)addAudioEffectsProfile:(id)sender;
- (IBAction)removeAudioEffectsProfile:(id)sender; - (IBAction)removeAudioEffectsProfile:(id)sender;
- (void)saveCurrentProfile;
/* Equalizer */ /* Equalizer */
- (void)setupEqualizer; - (void)setupEqualizer;
- (void)equalizerUpdated; - (void)equalizerUpdated;
......
This diff is collapsed.
...@@ -62,7 +62,9 @@ ...@@ -62,7 +62,9 @@
#import "CoreInteraction.h" #import "CoreInteraction.h"
#import "TrackSynchronization.h" #import "TrackSynchronization.h"
#import "VLCVoutWindowController.h" #import "VLCVoutWindowController.h"
#import "VideoEffects.h" #import "VideoEffects.h"
#import "AudioEffects.h"
#import <AddressBook/AddressBook.h> /* for crashlog send mechanism */ #import <AddressBook/AddressBook.h> /* for crashlog send mechanism */
#import <Sparkle/Sparkle.h> /* we're the update delegate */ #import <Sparkle/Sparkle.h> /* we're the update delegate */
...@@ -797,8 +799,9 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -797,8 +799,9 @@ static VLCMain *_o_sharedMainInstance = nil;
[NSApp setPresentationOptions:(NSApplicationPresentationDefault)]; [NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
} }
/* save current video profile */ /* save current video and audio profiles */
[[VLCVideoEffects sharedInstance] saveCurrentProfile]; [[VLCVideoEffects sharedInstance] saveCurrentProfile];
[[VLCAudioEffects sharedInstance] saveCurrentProfile];
/* Save some interface state in configuration, at module quit */ /* Save some interface state in configuration, at module quit */
config_PutInt(p_intf, "random", var_GetBool(p_playlist, "random")); config_PutInt(p_intf, "random", var_GetBool(p_playlist, "random"));
......
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