mirror of https://github.com/mgba-emu/mgba.git
*Wait -> bool
This commit is contained in:
parent
0a946a0b43
commit
894cc3783b
|
@ -27,14 +27,14 @@ enum ThreadState {
|
||||||
|
|
||||||
struct GBASync {
|
struct GBASync {
|
||||||
int videoFramePending;
|
int videoFramePending;
|
||||||
int videoFrameWait;
|
bool videoFrameWait;
|
||||||
int videoFrameSkip;
|
int videoFrameSkip;
|
||||||
bool videoFrameOn;
|
bool videoFrameOn;
|
||||||
Mutex videoFrameMutex;
|
Mutex videoFrameMutex;
|
||||||
Condition videoFrameAvailableCond;
|
Condition videoFrameAvailableCond;
|
||||||
Condition videoFrameRequiredCond;
|
Condition videoFrameRequiredCond;
|
||||||
|
|
||||||
int audioWait;
|
bool audioWait;
|
||||||
Condition audioRequiredCond;
|
Condition audioRequiredCond;
|
||||||
Mutex audioBufferMutex;
|
Mutex audioBufferMutex;
|
||||||
};
|
};
|
||||||
|
|
|
@ -88,8 +88,8 @@ int main(int argc, char** argv) {
|
||||||
.audioBuffers = 512,
|
.audioBuffers = 512,
|
||||||
.startCallback = _GBASDLStart,
|
.startCallback = _GBASDLStart,
|
||||||
.cleanCallback = _GBASDLClean,
|
.cleanCallback = _GBASDLClean,
|
||||||
.sync.videoFrameWait = 0,
|
.sync.videoFrameWait = false,
|
||||||
.sync.audioWait = 1,
|
.sync.audioWait = true,
|
||||||
.userData = &renderer
|
.userData = &renderer
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue