Permalink
Browse files

fixed choppiness problem with audioFileReaders setCurrentTime

  • Loading branch information...
1 parent b155ea2 commit 8edb3de15811851f5af50e86744f8f9615fccf70 @rweichler rweichler committed Jan 5, 2014
Showing with 1 addition and 6 deletions.
  1. +1 −6 Novocaine/AudioFileReader.mm
@@ -187,13 +187,7 @@ - (float)getCurrentTime
- (void)setCurrentTime:(float)thisCurrentTime
{
dispatch_async(dispatch_get_main_queue(), ^{
- [self pause];
ExtAudioFileSeek(self.inputFile, thisCurrentTime*self.samplingRate);
-
- [self clearBuffer];
- [self bufferNewAudio];
-
- [self play];
});
}
@@ -274,6 +268,7 @@ - (void)stop
[self pause];
if (self.callbackTimer) {
dispatch_release(self.callbackTimer);
+ self.callbackTimer = nil;
}
}

0 comments on commit 8edb3de

Please sign in to comment.