2010-09-15 17:49:16 +00:00
|
|
|
//
|
|
|
|
// HBAudioController.h
|
|
|
|
// HandBrake
|
|
|
|
//
|
|
|
|
// Created on 2010-08-24.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2014-08-10 16:05:07 +00:00
|
|
|
#import "HBViewValidation.h"
|
2010-09-15 17:49:16 +00:00
|
|
|
|
|
|
|
extern NSString *keyAudioTrackIndex;
|
|
|
|
extern NSString *keyAudioTrackName;
|
|
|
|
extern NSString *keyAudioInputBitrate;
|
|
|
|
extern NSString *keyAudioInputSampleRate;
|
|
|
|
extern NSString *keyAudioInputCodec;
|
2014-01-25 23:24:48 +00:00
|
|
|
extern NSString *keyAudioInputCodecParam;
|
2010-09-15 17:49:16 +00:00
|
|
|
extern NSString *keyAudioInputChannelLayout;
|
2014-08-04 07:12:12 +00:00
|
|
|
|
2010-09-15 17:49:16 +00:00
|
|
|
extern NSString *HBMixdownChangedNotification;
|
|
|
|
|
|
|
|
@class HBAudio;
|
2014-08-22 06:30:58 +00:00
|
|
|
@class HBAudioDefaults;
|
2014-07-15 18:30:51 +00:00
|
|
|
/**
|
|
|
|
* HBAudioController
|
|
|
|
*
|
|
|
|
* Responds to HBContainerChangedNotification and HBTitleChangedNotification notifications.
|
|
|
|
*/
|
2014-08-10 16:05:07 +00:00
|
|
|
@interface HBAudioController : NSViewController <HBViewValidation>
|
2010-09-15 17:49:16 +00:00
|
|
|
|
2011-05-26 15:48:37 +00:00
|
|
|
@property (nonatomic, readonly, retain) NSArray *masterTrackArray;
|
2010-09-15 17:49:16 +00:00
|
|
|
@property (nonatomic, readonly) NSDictionary *noneTrack;
|
|
|
|
|
2014-08-22 06:30:58 +00:00
|
|
|
@property(nonatomic, readonly) HBAudioDefaults *settings;
|
2014-07-15 18:30:51 +00:00
|
|
|
|
2014-08-04 16:46:17 +00:00
|
|
|
// Get the list of audio tracks
|
|
|
|
@property (readonly, nonatomic, copy) NSArray *audioTracks;
|
2014-08-04 07:12:12 +00:00
|
|
|
|
2014-08-04 16:46:17 +00:00
|
|
|
- (void) applySettingsFromPreset:(NSDictionary *)preset;
|
2014-11-02 15:17:54 +00:00
|
|
|
- (void) addTracksFromQueue: (NSArray *) queueArray;
|
2014-07-15 18:30:51 +00:00
|
|
|
|
2010-09-15 17:49:16 +00:00
|
|
|
- (BOOL) anyCodecMatches: (int) aCodecValue;
|
|
|
|
- (void) settingTrackToNone: (HBAudio *) newNoneTrack;
|
|
|
|
- (void) switchingTrackFromNone: (HBAudio *) noLongerNoneTrack;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface HBAudioController (KVC)
|
|
|
|
|
2013-10-15 11:36:51 +00:00
|
|
|
- (NSUInteger) countOfAudioArray;
|
|
|
|
- (HBAudio *) objectInAudioArrayAtIndex: (NSUInteger) index;
|
|
|
|
- (void) insertObject: (HBAudio *) audioObject inAudioArrayAtIndex: (NSUInteger) index;
|
|
|
|
- (void) removeObjectFromAudioArrayAtIndex: (NSUInteger) index;
|
2010-09-15 17:49:16 +00:00
|
|
|
|
|
|
|
@end
|