2015-01-13 08:08:04 +00:00
|
|
|
/* HBAudio.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>
|
2020-06-27 14:13:12 +02:00
|
|
|
#import <HandBrakeKit/HBPresetCoding.h>
|
2015-01-13 08:08:04 +00:00
|
|
|
|
|
|
|
@class HBAudioTrack;
|
2019-08-13 10:27:05 +02:00
|
|
|
@class HBTitleAudioTrack;
|
2015-01-13 08:08:04 +00:00
|
|
|
@class HBAudioDefaults;
|
|
|
|
|
2015-06-01 17:21:48 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-11-24 11:27:06 +01:00
|
|
|
extern NSString *HBAudioEncoderChangedNotification;
|
2015-01-31 17:12:11 +00:00
|
|
|
|
2016-10-29 13:24:01 +02:00
|
|
|
@interface HBAudio : NSObject <NSSecureCoding, NSCopying>
|
2015-01-13 08:08:04 +00:00
|
|
|
|
2019-08-13 10:27:05 +02:00
|
|
|
@property (nonatomic, readonly) NSArray<HBTitleAudioTrack *> *sourceTracks;
|
2016-09-03 18:11:11 +02:00
|
|
|
@property (nonatomic, readonly) NSMutableArray<HBAudioTrack *> *tracks;
|
|
|
|
|
2015-10-24 10:50:27 +02:00
|
|
|
@property (nonatomic, readwrite) HBAudioDefaults *defaults;
|
2015-01-13 08:08:04 +00:00
|
|
|
|
|
|
|
- (void)addAllTracks;
|
|
|
|
- (void)removeAll;
|
|
|
|
- (void)reloadDefaults;
|
|
|
|
|
|
|
|
- (BOOL)anyCodecMatches:(int)codec;
|
|
|
|
|
2015-10-24 10:50:27 +02:00
|
|
|
@property (nonatomic, readwrite, weak, nullable) NSUndoManager *undo;
|
2015-01-15 07:41:47 +00:00
|
|
|
|
2015-04-09 19:43:33 +00:00
|
|
|
@property (nonatomic, readonly) NSUInteger countOfTracks;
|
2015-01-13 08:08:04 +00:00
|
|
|
- (HBAudioTrack *)objectInTracksAtIndex:(NSUInteger)index;
|
|
|
|
- (void)insertObject:(HBAudioTrack *)track inTracksAtIndex:(NSUInteger)index;
|
|
|
|
- (void)removeObjectFromTracksAtIndex:(NSUInteger)index;
|
|
|
|
|
|
|
|
@end
|
2015-06-01 17:21:48 +00:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|