Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #67 from rweichler/master

fixed choppiness problem with AudioFileReader's setCurrentTime:
  • Loading branch information...
commit 0a00c337b9d10e2df30c6ed8a8353aa3a2d994ee 2 parents 72598c9 + 8edb3de
@alexbw authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 Novocaine/AudioFileReader.mm
View
7 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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.