mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-25 04:28:30 +00:00
Update raudio.c
This commit is contained in:
@@ -1906,7 +1906,7 @@ void UpdateMusicStream(Music music)
|
|||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
int frameCountRead = drflac_read_pcm_frames_s16((drflac *)music.ctxData, frameCountStillNeeded, (short *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize));
|
int frameCountRead = (int)drflac_read_pcm_frames_s16((drflac *)music.ctxData, frameCountStillNeeded, (short *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize));
|
||||||
frameCountReadTotal += frameCountRead;
|
frameCountReadTotal += frameCountRead;
|
||||||
frameCountStillNeeded -= frameCountRead;
|
frameCountStillNeeded -= frameCountRead;
|
||||||
if (frameCountStillNeeded == 0) break;
|
if (frameCountStillNeeded == 0) break;
|
||||||
|
Reference in New Issue
Block a user