diff --git a/src/gba/gba-thread.h b/src/gba/gba-thread.h index 32a711b96..142bc7a5e 100644 --- a/src/gba/gba-thread.h +++ b/src/gba/gba-thread.h @@ -27,14 +27,14 @@ enum ThreadState { struct GBASync { int videoFramePending; - int videoFrameWait; + bool videoFrameWait; int videoFrameSkip; bool videoFrameOn; Mutex videoFrameMutex; Condition videoFrameAvailableCond; Condition videoFrameRequiredCond; - int audioWait; + bool audioWait; Condition audioRequiredCond; Mutex audioBufferMutex; }; diff --git a/src/platform/sdl/gl-main.c b/src/platform/sdl/gl-main.c index e9d50c4c6..be328272b 100644 --- a/src/platform/sdl/gl-main.c +++ b/src/platform/sdl/gl-main.c @@ -88,8 +88,8 @@ int main(int argc, char** argv) { .audioBuffers = 512, .startCallback = _GBASDLStart, .cleanCallback = _GBASDLClean, - .sync.videoFrameWait = 0, - .sync.audioWait = 1, + .sync.videoFrameWait = false, + .sync.audioWait = true, .userData = &renderer };