From d8b77ae214e5c1312e69a86bce8efca19aed3f60 Mon Sep 17 00:00:00 2001 From: Thong Nguyen Date: Fri, 11 Dec 2015 01:06:53 +0000 Subject: [PATCH] Fixed bug in progressInFrames --- StreamingKit.podspec | 2 +- StreamingKit/StreamingKit/STKQueueEntry.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/StreamingKit.podspec b/StreamingKit.podspec index 44e78365..77f441d1 100644 --- a/StreamingKit.podspec +++ b/StreamingKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "StreamingKit" - s.version = "0.1.27" + s.version = "0.1.28" s.summary = "A fast and extensible audio streamer for iOS and OSX with support for gapless playback and custom (non-HTTP) sources." s.homepage = "https://github.com/tumtumtum/StreamingKit/" s.license = 'MIT' diff --git a/StreamingKit/StreamingKit/STKQueueEntry.m b/StreamingKit/StreamingKit/STKQueueEntry.m index 7ac18e9c..b5c351b8 100755 --- a/StreamingKit/StreamingKit/STKQueueEntry.m +++ b/StreamingKit/StreamingKit/STKQueueEntry.m @@ -110,7 +110,7 @@ -(BOOL) isDefinitelyCompatible:(AudioStreamBasicDescription*)basicDescription -(Float64) progressInFrames { OSSpinLockLock(&self->spinLock); - Float64 retval = self->seekTime + self->framesPlayed; + Float64 retval = (self->seekTime + self->audioStreamBasicDescription.mSampleRate) + self->framesPlayed; OSSpinLockUnlock(&self->spinLock); return retval;