mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-18 15:51:46 +00:00
Merge branch 'master' of https://github.com/raysan5/raylib
This commit is contained in:
@@ -325,6 +325,12 @@ static void OnSendAudioDataToDevice(ma_device *pDevice, void *pFramesOut, const
|
|||||||
framesRead += framesJustRead;
|
framesRead += framesJustRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!audioBuffer->playing)
|
||||||
|
{
|
||||||
|
framesRead = frameCount;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// If we weren't able to read all the frames we requested, break
|
// If we weren't able to read all the frames we requested, break
|
||||||
if (framesJustRead < framesToReadRightNow)
|
if (framesJustRead < framesToReadRightNow)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user