Browse Source

Merge branch 'master' of https://github.com/raysan5/raylib

pull/1071/head
Ray 5 years ago
parent
commit
9f699af138
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/raudio.c

+ 6
- 0
src/raudio.c View File

@ -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…
Cancel
Save