mirror of https://github.com/mgba-emu/mgba.git
Fix GBASyncProduceAudio signature
This commit is contained in:
parent
1dbecb2c64
commit
0867325b96
|
@ -577,7 +577,7 @@ bool GBASyncDrawingFrame(struct GBASync* sync) {
|
|||
return sync->videoFrameSkip <= 0;
|
||||
}
|
||||
|
||||
void GBASyncProduceAudio(struct GBASync* sync, int wait) {
|
||||
void GBASyncProduceAudio(struct GBASync* sync, bool wait) {
|
||||
if (sync->audioWait && wait) {
|
||||
// TODO loop properly in event of spurious wakeups
|
||||
ConditionWait(&sync->audioRequiredCond, &sync->audioBufferMutex);
|
||||
|
|
|
@ -121,7 +121,7 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip);
|
|||
void GBASyncWaitFrameEnd(struct GBASync* sync);
|
||||
bool GBASyncDrawingFrame(struct GBASync* sync);
|
||||
|
||||
void GBASyncProduceAudio(struct GBASync* sync, int wait);
|
||||
void GBASyncProduceAudio(struct GBASync* sync, bool wait);
|
||||
void GBASyncLockAudio(struct GBASync* sync);
|
||||
void GBASyncUnlockAudio(struct GBASync* sync);
|
||||
void GBASyncConsumeAudio(struct GBASync* sync);
|
||||
|
|
Loading…
Reference in New Issue