summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioTrack.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAudioTrack.h')
-rw-r--r--macosx/HBAudioTrack.h39
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