Просмотр исходного кода

Revert "vpc: enforce the audio device's reported output latency (closes #2)"

The latency is now handled by the audio plugin.

This reverts commit e40ed4c41f652cabd7082cf9fbd1c8d3c892b14c.
Thomas Guillem 8 лет назад
Родитель
Сommit
3d16036b9a
1 измененных файлов с 0 добавлено и 12 удалено
  1. 0 12
      Sources/VLCPlaybackController.m

+ 0 - 12
Sources/VLCPlaybackController.m

@@ -259,12 +259,6 @@ VLCMediaDelegate>
     if (self.pathToExternalSubtitlesFile)
         [_mediaPlayer openVideoSubTitlesFromFile:self.pathToExternalSubtitlesFile];
 
-#if TARGET_OS_TV
-    /* set audio delay to the default latency of the output device */
-    self.audioDelay = [[AVAudioSession sharedInstance] outputLatency];
-    APLog(@"Enforcing an audio output latency of %fs", [[AVAudioSession sharedInstance] outputLatency]);
-#endif
-
     VLCMedia *media;
     if (_mediaList) {
         media = [_mediaList mediaAtIndex:_itemInMediaListToBePlayedFirst];
@@ -833,12 +827,6 @@ VLCMediaDelegate>
     NSArray *outputs = [[AVAudioSession sharedInstance] currentRoute].outputs;
     NSString *portName = [[outputs firstObject] portName];
 
-#if TARGET_OS_TV
-    /* adapt audio delay to the default latency of the new output device */
-    self.audioDelay = [[AVAudioSession sharedInstance] outputLatency];
-    APLog(@"newly enforced audio output latency of %fs", [[AVAudioSession sharedInstance] outputLatency]);
-#endif
-
     if (![portName isEqualToString:@"Headphones"] && [_mediaPlayer isPlaying]) {
         [_mediaPlayer pause];
 #if TARGET_OS_IOS