Skip to content

Commit

Permalink
Fixed minor edge case issue in playthrough channel
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltyson committed Jun 5, 2013
1 parent 6ed0927 commit 1382327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/AEPlaythroughChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static OSStatus renderCallback(id channel,
}

UInt32 fillCount = TPCircularBufferPeek(&THIS->_buffer, NULL, AEAudioControllerAudioDescription(audioController));
if ( fillCount >= frames ) {
if ( fillCount > frames ) {
UInt32 skip = fillCount - frames;
TPCircularBufferDequeueBufferListFrames(&THIS->_buffer,
&skip,
Expand Down

0 comments on commit 1382327

Please sign in to comment.