mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-18 07:41: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;
|
framesToRead -= framesJustRead;
|
||||||
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