/* Audio */
/* Now lets add our new tracks to the audio list here */
- [fAudioController addTracksFromQueue: queueToApply];
+ [fAudioController addTracksFromQueue:[queueToApply objectForKey:@"AudioList"]];
/* Subtitles Defaults */
[fSubtitlesViewController.settings applySettingsFromPreset:queueToApply[@"SubtitlesDefaults"]];
@property (readonly, nonatomic, copy) NSArray *audioTracks;
- (void) applySettingsFromPreset:(NSDictionary *)preset;
-- (void) addTracksFromQueue: (NSMutableDictionary *) aQueue;
+- (void) addTracksFromQueue: (NSArray *) queueArray;
- (BOOL) anyCodecMatches: (int) aCodecValue;
- (void) settingTrackToNone: (HBAudio *) newNoneTrack;
return tracksArray;
}
-- (void) addTracksFromQueue: (NSMutableDictionary *) aQueue
+- (void) addTracksFromQueue: (NSArray *) queueArray
{
// Reinitialize the configured list of audio tracks
// The following is the pattern to follow, but with Audio%dTrack being the key to seek...
// Can we assume that there will be no skip in the data?
- for (NSDictionary *audioDict in aQueue[@"AudioList"])
+ for (NSDictionary *audioDict in queueArray)
{
HBAudio *newAudio = [[HBAudio alloc] init];
[newAudio setController: self];