Skip to content

Commit

Permalink
Merge pull request #20 from GlobalRadio/incorrect_stop_reason_when_se…
Browse files Browse the repository at this point in the history
…eking

fix: Incorrect stop reason
  • Loading branch information
iamszabo authored Feb 22, 2022
2 parents 485f06c + fa7e721 commit 90b6e4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StreamingKit.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = "StreamingKit"
s.version = "2.4.22"
s.version = "2.4.23"
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'
s.author = { "Thong Nguyen" => "[email protected]" }
s.source = { :git => "https://github.com/GlobalRadio/StreamingKit.git", :tag => "guac_2.4.22"}
s.source = { :git => "https://github.com/GlobalRadio/StreamingKit.git", :tag => "guac_2.4.23"}
s.platform = :ios
s.requires_arc = true
s.source_files = 'StreamingKit/StreamingKit/*.{h,m}'
Expand Down
2 changes: 2 additions & 0 deletions StreamingKit/StreamingKit/STKAudioPlayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -2815,6 +2815,8 @@ static OSStatus OutputRenderCallback(void* inRefCon, AudioUnitRenderActionFlags*

if (lastFramePlayed && entry == currentlyPlayingEntry)
{
[audioPlayer stopAudioUnitWithReason:STKAudioPlayerStopReasonEof];

[audioPlayer audioQueueFinishedPlaying:entry];

while (extraFramesPlayedNotAssigned > 0)
Expand Down

0 comments on commit 90b6e4a

Please sign in to comment.