Update raudio.c

This commit is contained in:
Ray 2023-10-09 11:17:09 +02:00
parent b55cf40b91
commit f93d0ff9bc

View File

@ -1906,7 +1906,7 @@ void UpdateMusicStream(Music music)
{
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;
frameCountStillNeeded -= frameCountRead;
if (frameCountStillNeeded == 0) break;