Don't sync on audio and video at the same time--this can cause audio skipping

This commit is contained in:
Jeffrey Pfau 2014-01-25 18:08:33 -08:00
parent 9c2c93220b
commit b1a648e46e
2 changed files with 1 additions and 2 deletions

View File

@ -74,7 +74,7 @@ int main(int argc, char** argv) {
context.useDebugger = 1; context.useDebugger = 1;
context.renderer = &renderer.d.d; context.renderer = &renderer.d.d;
context.frameskip = 0; context.frameskip = 0;
context.sync.videoFrameWait = 1; context.sync.videoFrameWait = 0;
context.sync.audioWait = 1; context.sync.audioWait = 1;
context.startCallback = _GBASDLStart; context.startCallback = _GBASDLStart;
context.cleanCallback = _GBASDLClean; context.cleanCallback = _GBASDLClean;

View File

@ -67,7 +67,6 @@ static void _GBASDLHandleKeypress(struct GBAThread* context, const struct SDL_Ke
#endif #endif
case SDLK_TAB: case SDLK_TAB:
context->sync.audioWait = event->type != SDL_KEYDOWN; context->sync.audioWait = event->type != SDL_KEYDOWN;
context->sync.videoFrameWait = event->type != SDL_KEYDOWN;
return; return;
default: default:
if (event->type == SDL_KEYDOWN) { if (event->type == SDL_KEYDOWN) {