all repos — mgba @ b486223532adbc5bb55d9306cf31709d226e4c79

mGBA Game Boy Advance Emulator

GB, GBA: Make ensure clock end frame is always the same
Vicki Pfau vi@endrift.com
Sat, 15 Apr 2017 21:25:07 -0700
commit

b486223532adbc5bb55d9306cf31709d226e4c79

parent

0c917138ea39b94d17c092b92a43986ac9c7f790

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/gb/audio.csrc/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.csrc/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; } }