@class HBAudioTrack;
@class HBAudioDefaults;
+NS_ASSUME_NONNULL_BEGIN
+
extern NSString *HBAudioChangedNotification;
@interface HBAudio : NSObject <NSSecureCoding, NSCopying, HBPresetCoding>
- (BOOL)anyCodecMatches:(int)codec;
- (void)settingTrackToNone:(HBAudioTrack *)newNoneTrack;
-- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack;
+- (void)switchingTrackFromNone:(nullable HBAudioTrack *)noLongerNoneTrack;
- (void)containerChanged:(int)container;
- (void)removeObjectFromTracksAtIndex:(NSUInteger)index;
@end
+
+NS_ASSUME_NONNULL_END
#import <Foundation/Foundation.h>
#import "HBPresetCoding.h"
+NS_ASSUME_NONNULL_BEGIN
+
typedef NS_ENUM(NSUInteger, HBAudioTrackSelectionBehavior) {
HBAudioTrackSelectionBehaviorNone,
HBAudioTrackSelectionBehaviorFirst,
- (void)validateEncoderFallbackForVideoContainer:(int)container;
@end
+
+NS_ASSUME_NONNULL_END
@protocol HBAudioTrackDataSource;
@protocol HBAudioTrackDelegate;
+NS_ASSUME_NONNULL_BEGIN
+
/**
* Audio track dicts keys.
*/
@interface HBAudioTrack : NSObject <NSSecureCoding, NSCopying>
@property (nonatomic, strong) NSDictionary *track;
-@property (nonatomic, strong) NSDictionary *codec;
+@property (nonatomic, strong, nullable) NSDictionary *codec;
@property (nonatomic, strong) NSDictionary *mixdown;
@property (nonatomic, strong) NSDictionary *sampleRate;
@property (nonatomic, strong) NSDictionary *bitRate;
@property (nonatomic, strong) NSNumber *drc;
@property (nonatomic, strong) NSNumber *gain;
@property (nonatomic, strong) NSNumber *videoContainerTag;
-@property (nonatomic, weak) id<HBAudioTrackDataSource> dataSource;
-@property (nonatomic, weak) id<HBAudioTrackDelegate> delegate;
+@property (nonatomic, weak, nullable) id<HBAudioTrackDataSource> dataSource;
+@property (nonatomic, weak, nullable) id<HBAudioTrackDelegate> delegate;
@property (nonatomic, strong) NSMutableArray *codecs;
@property (nonatomic, strong) NSMutableArray *mixdowns;
- (void)switchingTrackFromNone:(HBAudioTrack *)noLongerNoneTrack;
- (void)mixdownChanged;
@end
+
+NS_ASSUME_NONNULL_END
#import <Foundation/Foundation.h>
+NS_ASSUME_NONNULL_BEGIN
+
/**
* HBAudioTrackPreset
* a KVO enabled class used in the Audio Defaults panels,
@end
+NS_ASSUME_NONNULL_END
+
/**
* A series of value trasformers to bridge the libhb enums
* to the textual rapresentations used in the interface.
#import <Foundation/Foundation.h>
#import "HBPresetCoding.h"
+NS_ASSUME_NONNULL_BEGIN
+
extern NSString *keySubTrackSelectionIndex;
extern NSString *keySubTrackName;
extern NSString *keySubTrackIndex;
@end
+NS_ASSUME_NONNULL_END
+
#import <Foundation/Foundation.h>
#import "HBPresetCoding.h"
+NS_ASSUME_NONNULL_BEGIN
+
typedef NS_ENUM(NSUInteger, HBSubtitleTrackSelectionBehavior) {
HBSubtitleTrackSelectionBehaviorNone,
HBSubtitleTrackSelectionBehaviorFirst,
@property (nonatomic, readwrite) BOOL burnInBluraySubtitles;
@end
+
+NS_ASSUME_NONNULL_END