From 76c390b17a20417a478ad8cd76fd3280c34e8263 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 10 Aug 2015 15:54:47 +0000 Subject: [PATCH] fix bug in sndxa2 driver that made it chow major cpu in a busy loop --- desmume/src/windows/sndxa2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/windows/sndxa2.cpp b/desmume/src/windows/sndxa2.cpp index 4f3cbd63d..0216052b3 100644 --- a/desmume/src/windows/sndxa2.cpp +++ b/desmume/src/windows/sndxa2.cpp @@ -128,7 +128,7 @@ int SNDXA2Init(int buffersize) return -1; } - bufferReadyEvent = CreateEvent(NULL,TRUE,TRUE,NULL); + bufferReadyEvent = CreateEvent(NULL,FALSE,TRUE,NULL); threadQuitEvent = CreateEvent(NULL,TRUE,TRUE,NULL); exitthread = false;