// // HBAudioSettings.h // HandBrake // // Created by Damiano Galassi on 29/07/14. // // #import typedef NS_ENUM(NSUInteger, HBAudioTrackSelectionBehavior) { HBAudioTrackSelectionBehaviorNone, HBAudioTrackSelectionBehaviorFirst, HBAudioTrackSelectionBehaviorAll, }; /** * HBAudioSettings * Stores the audio defaults settings. */ @interface HBAudioSettings : 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