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
2 files changed,
1 insertions(+),
2 deletions(-)
M
src/platform/sdl/gl-main.c
→
src/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.c
→
src/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) {