瀏覽代碼

Corrected issue with MOD/XM loop

pull/708/head
raysan5 6 年之前
父節點
當前提交
d0d99d3503
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      src/audio.c

+ 2
- 1
src/audio.c 查看文件

@ -1364,7 +1364,8 @@ void UpdateMusicStream(Music music)
UpdateAudioStream(music->stream, pcm, samplesCount);
if ((music->ctxType == MUSIC_MODULE_XM) || (music->ctxType == MUSIC_MODULE_MOD))
{
music->samplesLeft -= samplesCount/2;
if (samplesCount > 1) music->samplesLeft -= samplesCount/2;
else music->samplesLeft -= samplesCount;
}
else music->samplesLeft -= samplesCount;

Loading…
取消
儲存