summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioTrack.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-08-13 10:27:05 +0200
committerDamiano Galassi <[email protected]>2019-08-13 10:27:05 +0200
commitf2a619679551fd988c4e28bf68108f174d64fb3d (patch)
tree3b7b294d44d5afd20a864c2b9d2f3676f7a4749a /macosx/HBAudioTrack.h
parent5b3c3c620855130c7bcd47685ad69a765e0cfd7b (diff)
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.
Diffstat (limited to 'macosx/HBAudioTrack.h')
-rw-r--r--macosx/HBAudioTrack.h17
1 files changed, 4 insertions, 13 deletions
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 <Foundation/Foundation.h>
@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 <NSObject>
-- (NSDictionary<NSString *, id> *)sourceTrackAtIndex:(NSUInteger)idx;
+- (HBTitleAudioTrack *)sourceTrackAtIndex:(NSUInteger)idx;
- (NSArray<NSString *> *)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;
/**