Fix excessive CPU usage

This commit is contained in:
Barry Harris 2012-01-24 10:40:00 +00:00
parent 7978ba451f
commit 4796e5e184
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ static int DxSoundCheck()
}
if (nDSoundNextSeg == nPlaySeg) {
//Sleep(2); // Don't need to do anything for a bit
Sleep(2); // Don't need to do anything for a bit
//bRunFrame = true;
return 0;
}

View File

@ -109,7 +109,7 @@ static int XAudio2Check()
WaitForSingleObject(voiceContext.hBufferEndEvent, INFINITE);
} else {
// drop current audio frame
//Sleep(2);
Sleep(2);
return 0;
}
}