summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioTrack.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-31 17:12:11 +0000
committerritsuka <[email protected]>2015-01-31 17:12:11 +0000
commitc81e2df474f6181b19c20423e454c2f1067d12e5 (patch)
treece48f945796827b76de9d261247ca4c2130c32e1 /macosx/HBAudioTrack.h
parent32e65ab4d0c0dd32da51322aaa2b170fcf23113d (diff)
MacGui: add a HBAudioTrackDataSource protocol to simplify HBAudio interface.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6844 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioTrack.h')
-rw-r--r--macosx/HBAudioTrack.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/macosx/HBAudioTrack.h b/macosx/HBAudioTrack.h
index f7dcc88fe..136f0729c 100644
--- a/macosx/HBAudioTrack.h
+++ b/macosx/HBAudioTrack.h
@@ -7,6 +7,7 @@
#import <Foundation/Foundation.h>
@class HBAudio;
+@protocol HBAudioTrackDataSource;
/**
* Audio track dicts keys.
@@ -39,7 +40,7 @@ extern NSString *keyAudioBitrate;
@property (nonatomic, retain) NSNumber *drc;
@property (nonatomic, retain) NSNumber *gain;
@property (nonatomic, retain) NSNumber *videoContainerTag;
-@property (nonatomic, assign) HBAudio *controller;
+@property (nonatomic, assign) id<HBAudioTrackDataSource> dataSource;
@property (nonatomic, retain) NSMutableArray *codecs;
@property (nonatomic, retain) NSMutableArray *mixdowns;
@@ -54,3 +55,11 @@ extern NSString *keyAudioBitrate;
- (void) setBitRateFromName: (NSString *) aValue;
@end
+
+@protocol HBAudioTrackDataSource <NSObject>
+- (NSDictionary *)noneTrack;
+- (NSArray *)masterTrackArray;
+
+- (void)settingTrackToNone:(HBAudioTrack *)newNoneTrack;
+- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack;
+@end