all repos — mgba @ 2079d476738802b53ff1a9c4be68f60173744c8e

mGBA Game Boy Advance Emulator

SDL Audio: Fix silly regression with changing the FPS target
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Oct 2015 23:35:03 -0700
commit

2079d476738802b53ff1a9c4be68f60173744c8e

parent

b950f45652b840014dc43d1a08bfca1a05c80cc0

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/sdl-audio.csrc/platform/sdl/sdl-audio.c

@@ -121,7 +121,7 @@ }

#elif RESAMPLE_LIBRARY == RESAMPLE_BLIP_BUF double fauxClock = 1; if (audioContext->thread) { - GBAAudioCalculateRatio(1, audioContext->thread->fpsTarget, 1); + fauxClock = GBAAudioCalculateRatio(1, audioContext->thread->fpsTarget, 1); GBASyncLockAudio(&audioContext->thread->sync); } blip_set_rates(gba->audio.left, GBA_ARM7TDMI_FREQUENCY, audioContext->obtainedSpec.freq * fauxClock);