all repos — mgba @ 0867325b96480243b05c7ff3b11a819a52185b03

mGBA Game Boy Advance Emulator

Fix GBASyncProduceAudio signature
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Oct 2014 23:40:39 -0700
commit

0867325b96480243b05c7ff3b11a819a52185b03

parent

1dbecb2c645d2858abae79a18846e2f5126a3d62

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

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -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);
M src/gba/gba-thread.hsrc/gba/gba-thread.h

@@ -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);