all repos — mgba @ b1a648e46e7878c4eebf457699bbf444fbeecf48

mGBA Game Boy Advance Emulator

Don't sync on audio and video at the same time--this can cause audio skipping
Jeffrey Pfau jeffrey@endrift.com
Sat, 25 Jan 2014 18:08:33 -0800
commit

b1a648e46e7878c4eebf457699bbf444fbeecf48

parent

9c2c93220b22887991cc7141a8c8669f2150d6fa

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

jump to
M src/platform/sdl/gl-main.csrc/platform/sdl/gl-main.c

@@ -74,7 +74,7 @@ context.fname = fname;

context.useDebugger = 1; context.renderer = &renderer.d.d; context.frameskip = 0; - context.sync.videoFrameWait = 1; + context.sync.videoFrameWait = 0; context.sync.audioWait = 1; context.startCallback = _GBASDLStart; context.cleanCallback = _GBASDLClean;
M src/platform/sdl/sdl-events.csrc/platform/sdl/sdl-events.c

@@ -67,7 +67,6 @@ break;

#endif case SDLK_TAB: context->sync.audioWait = event->type != SDL_KEYDOWN; - context->sync.videoFrameWait = event->type != SDL_KEYDOWN; return; default: if (event->type == SDL_KEYDOWN) {