mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-17 23:31:47 +00:00
Merge branch 'master' of https://github.com/raysan5/raylib
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user