diff options
author | Damiano Galassi <[email protected]> | 2015-10-24 10:50:27 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-24 10:50:27 +0200 |
commit | 7e32b94a04e073aa94b51811200b664a5001f983 (patch) | |
tree | 8b328e88162db42ee1d9237a61ea2c97f4c0183d /macosx/HBAudioTrack.h | |
parent | 97e6ad384476b97cbc36bfb0a81ac179b1fc7d70 (diff) |
MacGui: add redo/undo supports to the audio part of HBJob.
Diffstat (limited to 'macosx/HBAudioTrack.h')
-rw-r--r-- | macosx/HBAudioTrack.h | 39 |
1 files changed, 20 insertions, 19 deletions
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 <Foundation/Foundation.h> -@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 <NSObject> +- (NSDictionary *)noneTrack; +- (NSArray *)masterTrackArray; +@end + +@protocol HBAudioTrackDelegate <NSObject> +- (void)settingTrackToNone:(HBAudioTrack *)newNoneTrack; +- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack; +- (void)mixdownChanged; +@end + @interface HBAudioTrack : NSObject <NSSecureCoding, NSCopying> @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<HBAudioTrackDataSource> dataSource; @property (nonatomic, weak, nullable) id<HBAudioTrackDelegate> 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 <NSObject> -- (NSDictionary *)noneTrack; -- (NSArray *)masterTrackArray; -@end - -@protocol HBAudioTrackDelegate <NSObject> -- (void)settingTrackToNone:(HBAudioTrack *)newNoneTrack; -- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack; -- (void)mixdownChanged; @end NS_ASSUME_NONNULL_END |