all repos — mgba @ 894cc3783b542813fa7db99276db451df6603b06

mGBA Game Boy Advance Emulator

*Wait -> bool
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Oct 2014 01:13:55 -0700
commit

894cc3783b542813fa7db99276db451df6603b06

parent

0a946a0b43bd8afcbb7c425eeacc131a4fc3ccdb

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/gba/gba-thread.hsrc/gba/gba-thread.h

@@ -27,14 +27,14 @@ };

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; };
M src/platform/sdl/gl-main.csrc/platform/sdl/gl-main.c

@@ -88,8 +88,8 @@ .renderer = &renderer.d.d,

.audioBuffers = 512, .startCallback = _GBASDLStart, .cleanCallback = _GBASDLClean, - .sync.videoFrameWait = 0, - .sync.audioWait = 1, + .sync.videoFrameWait = false, + .sync.audioWait = true, .userData = &renderer };