diff options
author | dynaflash <[email protected]> | 2010-09-15 17:49:16 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-09-15 17:49:16 +0000 |
commit | b8353118c5cbd314514a6f9bcd2f566a0be0cd36 (patch) | |
tree | 6bf14c4879b5166f7b2976fcd67d6b0083c1ea52 /macosx/HBAudio.h | |
parent | aa377f1ebae6ebb070f2713bb34700eed422186e (diff) |
MacGui: Audio ... Allow more than 4 audio tracks.
- Patch courtesy of circleone ... Thanks!
- Use a NSTableView to dynamically add/delete audio tracks ala the Subtitle tab.
- Sets a 24 track limit until someone tests more than 24 tracks (the libhb 8 track limit was removed as per http://trac.handbrake.fr/changeset/3531).
- Replaces the old static 4 tracks to a dynamic array.
- Moves macgui audio handling to a separate class.
Known caveats:
- Borks queue editing which needs a revamp anyway.
- Queue window display needs to be adjusted to show more than 4 tracks appropriately. Again, its cosmetic and is not a show stopper.
- There may be other possible unknown side effects even though tested on all presets. That said, I feel it needs to get in so that we can get feedback from nightlies.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3532 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudio.h')
-rw-r--r-- | macosx/HBAudio.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/macosx/HBAudio.h b/macosx/HBAudio.h new file mode 100644 index 000000000..08d1b1903 --- /dev/null +++ b/macosx/HBAudio.h @@ -0,0 +1,60 @@ +// +// HBAudio.h +// HandBrake +// +// Created on 2010-08-30. +// + +#import <Cocoa/Cocoa.h> + +@class HBAudioController; + +extern NSString *keyAudioCodecName; +extern NSString *keyAudioSampleRateName; +extern NSString *keyAudioBitrateName; +extern NSString *keyAudioMixdownName; +extern NSString *keyAudioCodec; +extern NSString *keyAudioMixdown; +extern NSString *keyAudioSamplerate; +extern NSString *keyAudioBitrate; + +@interface HBAudio : NSObject + +{ + NSDictionary *track; + NSDictionary *codec; + NSDictionary *mixdown; + NSDictionary *sampleRate; + NSDictionary *bitRate; + NSNumber *drc; + NSNumber *videoContainerTag; + HBAudioController *controller; + NSMutableArray *codecs; + NSMutableArray *mixdowns; + NSMutableArray *bitRates; +} + +@property (nonatomic, retain) NSDictionary *track; +@property (nonatomic, retain) NSDictionary *codec; +@property (nonatomic, retain) NSDictionary *mixdown; +@property (nonatomic, retain) NSDictionary *sampleRate; +@property (nonatomic, retain) NSDictionary *bitRate; +@property (nonatomic, retain) NSNumber *drc; +@property (nonatomic, retain) NSNumber *videoContainerTag; +@property (nonatomic, assign) HBAudioController *controller; + +@property (nonatomic, readonly) NSArray *tracks; +@property (nonatomic, retain) NSMutableArray *codecs; +@property (nonatomic, retain) NSMutableArray *mixdowns; +@property (nonatomic, readonly) NSArray *sampleRates; +@property (nonatomic, retain) NSArray *bitRates; +@property (nonatomic, readonly) BOOL enabled; + +- (void) setTrackFromIndex: (int) aValue; +- (BOOL) setCodecFromName: (NSString *) aValue; +- (void) setMixdownFromName: (NSString *) aValue; +- (void) setSampleRateFromName: (NSString *) aValue; +- (void) setBitRateFromName: (NSString *) aValue; + +@end + |