diff options
author | ritsuka <[email protected]> | 2014-08-22 06:30:58 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-08-22 06:30:58 +0000 |
commit | a13b937ba09ca5c29ef633114b0880a4f1213f0e (patch) | |
tree | ec065c3497235a60ddf03e1e87b9e6b362606f3f /macosx/HBAudioDefaults.h | |
parent | c27510750ff919f6e9343e82d1047fe5cb0ff68b (diff) |
MacGui: renamed HB*Settings classes to HB*Defaults. Added a “…” char to the “Configure Defaults” button.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6341 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioDefaults.h')
-rw-r--r-- | macosx/HBAudioDefaults.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/macosx/HBAudioDefaults.h b/macosx/HBAudioDefaults.h new file mode 100644 index 000000000..5853a6e12 --- /dev/null +++ b/macosx/HBAudioDefaults.h @@ -0,0 +1,42 @@ +/* HBAudioSettings.h $ + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ + +#import <Foundation/Foundation.h> + +typedef NS_ENUM(NSUInteger, HBAudioTrackSelectionBehavior) { + HBAudioTrackSelectionBehaviorNone, + HBAudioTrackSelectionBehaviorFirst, + HBAudioTrackSelectionBehaviorAll, +}; + +/** + * HBAudioSettings + * Stores the audio defaults settings. + */ +@interface HBAudioDefaults : NSObject + +@property (nonatomic, readwrite) HBAudioTrackSelectionBehavior trackSelectionBehavior; +@property (nonatomic, readwrite, retain) NSMutableArray *trackSelectionLanguages; + +@property (nonatomic, readwrite, retain) NSMutableArray *tracksArray; + +@property(nonatomic, readwrite) BOOL allowAACPassthru; +@property(nonatomic, readwrite) BOOL allowAC3Passthru; +@property(nonatomic, readwrite) BOOL allowDTSHDPassthru; +@property(nonatomic, readwrite) BOOL allowDTSPassthru; +@property(nonatomic, readwrite) BOOL allowMP3Passthru; + +@property(nonatomic, readwrite) int encoderFallback; +@property(nonatomic, readwrite) BOOL secondaryEncoderMode; + +@property(nonatomic, readonly) NSArray *audioEncoderFallbacks; + +- (void)applySettingsFromPreset:(NSDictionary *)preset; +- (void)prepareAudioForPreset:(NSMutableDictionary *)preset; + +- (void)validateEncoderFallbackForVideoContainer:(int)container; + +@end |