From 7e32b94a04e073aa94b51811200b664a5001f983 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 24 Oct 2015 10:50:27 +0200 Subject: MacGui: add redo/undo supports to the audio part of HBJob. --- macosx/HBAudioTrack.h | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'macosx/HBAudioTrack.h') diff --git a/macosx/HBAudioTrack.h b/macosx/HBAudioTrack.h index e1333678d..7bf5c8ecc 100644 --- a/macosx/HBAudioTrack.h +++ b/macosx/HBAudioTrack.h @@ -6,9 +6,7 @@ #import -@class HBAudio; -@protocol HBAudioTrackDataSource; -@protocol HBAudioTrackDelegate; +@class HBAudioTrack; NS_ASSUME_NONNULL_BEGIN @@ -33,6 +31,17 @@ extern NSString *keyAudioMixdown; extern NSString *keyAudioSamplerate; extern NSString *keyAudioBitrate; +@protocol HBAudioTrackDataSource +- (NSDictionary *)noneTrack; +- (NSArray *)masterTrackArray; +@end + +@protocol HBAudioTrackDelegate +- (void)settingTrackToNone:(HBAudioTrack *)newNoneTrack; +- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack; +- (void)mixdownChanged; +@end + @interface HBAudioTrack : NSObject @property (nonatomic, strong) NSDictionary *track; @@ -40,16 +49,17 @@ extern NSString *keyAudioBitrate; @property (nonatomic, strong) NSDictionary *mixdown; @property (nonatomic, strong) NSDictionary *sampleRate; @property (nonatomic, strong) NSDictionary *bitRate; -@property (nonatomic, strong) NSNumber *drc; -@property (nonatomic, strong) NSNumber *gain; -@property (nonatomic, strong) NSNumber *videoContainerTag; +@property (nonatomic) double drc; +@property (nonatomic) double gain; +@property (nonatomic) int container; + @property (nonatomic, weak, nullable) id dataSource; @property (nonatomic, weak, nullable) id delegate; -@property (nonatomic, strong) NSMutableArray *codecs; -@property (nonatomic, strong) NSMutableArray *mixdowns; +@property (nonatomic, readonly) NSArray *codecs; +@property (nonatomic, readonly) NSArray *mixdowns; @property (nonatomic, readonly) NSArray *sampleRates; -@property (nonatomic, strong) NSArray *bitRates; +@property (nonatomic, readonly) NSArray *bitRates; @property (nonatomic, readonly) BOOL enabled; - (void) setTrackFromIndex: (int) aValue; @@ -58,17 +68,8 @@ extern NSString *keyAudioBitrate; - (void) setSampleRateFromName: (NSString *) aValue; - (void) setBitRateFromName: (NSString *) aValue; -@end +@property (nonatomic, readwrite, weak, nullable) NSUndoManager *undo; -@protocol HBAudioTrackDataSource -- (NSDictionary *)noneTrack; -- (NSArray *)masterTrackArray; -@end - -@protocol HBAudioTrackDelegate -- (void)settingTrackToNone:(HBAudioTrack *)newNoneTrack; -- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack; -- (void)mixdownChanged; @end NS_ASSUME_NONNULL_END -- cgit v1.2.3