From b1a648e46e7878c4eebf457699bbf444fbeecf48 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 25 Jan 2014 18:08:33 -0800 Subject: [PATCH] Don't sync on audio and video at the same time--this can cause audio skipping --- src/platform/sdl/gl-main.c | 2 +- src/platform/sdl/sdl-events.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/sdl/gl-main.c b/src/platform/sdl/gl-main.c index cd048eb9e..12f2d1868 100644 --- a/src/platform/sdl/gl-main.c +++ b/src/platform/sdl/gl-main.c @@ -74,7 +74,7 @@ int main(int argc, char** argv) { 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; diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index a5e73e429..657400fe2 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -67,7 +67,6 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, const struct SDL_Ke #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) {