Merge pull request #20 from gangverk/master

Continual allocation of NSDate objects in [AudioPlayer startInterval]
This commit is contained in:
Thong Nguyen 2013-04-17 05:06:26 -07:00
commit ea64e5cd71
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Audjustable"
s.version = "0.0.3"
s.version = "0.0.4"
s.summary = "A fast and extensible audio streamer for iOS and OSX with support for gapless playback and custom (non-HTTP) sources."
s.homepage = "http://tumtumtum.github.com/audjustable/"
s.license = 'MIT'

View File

@ -1636,7 +1636,8 @@ static void AudioQueueIsRunningCallbackProc(void* userData, AudioQueueRef audioQ
break;
}
[playbackThreadRunLoop runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:10]];
NSDate *date = [[NSDate alloc] initWithTimeIntervalSinceNow:10];
[playbackThreadRunLoop runMode:NSDefaultRunLoopMode beforeDate:date];
}
disposeWasRequested = NO;