GB, GBA: Make ensure clock end frame is always the same
Vicki Pfau vi@endrift.com
Sat, 15 Apr 2017 21:25:07 -0700
2 files changed,
4 insertions(+),
4 deletions(-)
M
src/gb/audio.c
→
src/gb/audio.c
@@ -640,8 +640,8 @@ audio->lastLeft = sampleLeft;
audio->lastRight = sampleRight; audio->clock += audio->sampleInterval; if (audio->clock >= CLOCKS_PER_BLIP_FRAME) { - blip_end_frame(audio->left, audio->clock); - blip_end_frame(audio->right, audio->clock); + blip_end_frame(audio->left, CLOCKS_PER_BLIP_FRAME); + blip_end_frame(audio->right, CLOCKS_PER_BLIP_FRAME); audio->clock -= CLOCKS_PER_BLIP_FRAME; } }
M
src/gba/audio.c
→
src/gba/audio.c
@@ -297,8 +297,8 @@ audio->lastLeft = sampleLeft;
audio->lastRight = sampleRight; audio->clock += audio->sampleInterval; if (audio->clock >= CLOCKS_PER_FRAME) { - blip_end_frame(audio->psg.left, audio->clock); - blip_end_frame(audio->psg.right, audio->clock); + blip_end_frame(audio->psg.left, CLOCKS_PER_FRAME); + blip_end_frame(audio->psg.right, CLOCKS_PER_FRAME); audio->clock -= CLOCKS_PER_FRAME; } }