From f2a619679551fd988c4e28bf68108f174d64fb3d Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 13 Aug 2019 10:27:05 +0200 Subject: MacGui: convert the last usage of NSDictionary to a proper class, fix external subtitles tracks when sandboxed. Add initial support to the model to store the track title. --- macosx/HBAudioTrack.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'macosx/HBAudioTrack.h') diff --git a/macosx/HBAudioTrack.h b/macosx/HBAudioTrack.h index b0a5e0bea..678c138eb 100644 --- a/macosx/HBAudioTrack.h +++ b/macosx/HBAudioTrack.h @@ -7,23 +7,12 @@ #import @class HBAudioTrack; +@class HBTitleAudioTrack; NS_ASSUME_NONNULL_BEGIN -/** - * Audio track dicts keys. - */ -extern NSString *keyAudioTrackIndex; -extern NSString *keyAudioTrackName; -extern NSString *keyAudioInputBitrate; -extern NSString *keyAudioInputSampleRate; -extern NSString *keyAudioInputCodec; -extern NSString *keyAudioInputCodecParam; -extern NSString *keyAudioInputChannelLayout; -extern NSString *keyAudioTrackLanguageIsoCode; - @protocol HBAudioTrackDataSource -- (NSDictionary *)sourceTrackAtIndex:(NSUInteger)idx; +- (HBTitleAudioTrack *)sourceTrackAtIndex:(NSUInteger)idx; - (NSArray *)sourceTracksArray; @end @@ -57,6 +46,8 @@ extern NSString *keyAudioTrackLanguageIsoCode; @property (nonatomic, readwrite) double gain; @property (nonatomic, readwrite) double drc; +@property (nonatomic, readwrite, nullable) NSString *title; + @property (nonatomic, readonly, getter=isEnabled) BOOL enabled; /** -- cgit v1.2.3