Skip to content

Commit

Permalink
Fixed bug in progressInFrames
Browse files Browse the repository at this point in the history
  • Loading branch information
tumtumtum committed Dec 11, 2015
1 parent 499e547 commit d8b77ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion StreamingKit.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion StreamingKit/StreamingKit/STKQueueEntry.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8b77ae

Please sign in to comment.