Update raudio.c
This commit is contained in:
parent
68ee0bb8dd
commit
aae7ab64c7
1 changed files with 1 additions and 1 deletions
|
@ -1966,7 +1966,7 @@ void UpdateMusicStream(Music music)
|
|||
{
|
||||
while (true)
|
||||
{
|
||||
int frameCountRed = drflac_read_pcm_frames_s16((drflac *)music.ctxData, frameCountStillNeeded, (short *)((char *)AUDIO.System.pcmBuffer + frameCountRedTotal*frameSize));
|
||||
int frameCountRead = drflac_read_pcm_frames_s16((drflac *)music.ctxData, frameCountStillNeeded, (short *)((char *)AUDIO.System.pcmBuffer + frameCountReadTotal*frameSize));
|
||||
frameCountReadTotal += frameCountRead;
|
||||
frameCountStillNeeded -= frameCountRead;
|
||||
if (frameCountStillNeeded == 0) break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue