Merge branch 'master' of https://github.com/raysan5/raylib
This commit is contained in:
commit
9f699af138
1 changed files with 6 additions and 0 deletions
|
@ -324,6 +324,12 @@ static void OnSendAudioDataToDevice(ma_device *pDevice, void *pFramesOut, const
|
|||
framesToRead -= framesJustRead;
|
||||
framesRead += framesJustRead;
|
||||
}
|
||||
|
||||
if (!audioBuffer->playing)
|
||||
{
|
||||
framesRead = frameCount;
|
||||
break;
|
||||
}
|
||||
|
||||
// If we weren't able to read all the frames we requested, break
|
||||
if (framesJustRead < framesToReadRightNow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue