mirror of https://github.com/mgba-emu/mgba.git
Don't sync on audio and video at the same time--this can cause audio skipping
This commit is contained in:
parent
9c2c93220b
commit
b1a648e46e
|
@ -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;
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue