Skip to content
Snippets Groups Projects
Commit dfc40129 authored by deuce's avatar deuce
Browse files

Fixing Win32 bugs.

parent 0ade14c2
Branches
Tags
No related merge requests found
......@@ -445,11 +445,10 @@ BOOL DLLCALL xptone(double freq, DWORD duration, enum WAVE_SHAPE shape)
makewave(freq,wave,wh.dwBufferLength,shape);
if(waveOutWrite(waveOut, &wh, sizeof(wh))==MMSYSERR_NOERROR)
success=TRUE;
while(!(wh.dwFlags & WHDR_DONE))
SLEEP(1);
if(waveOutWrite(waveOut, &wh, sizeof(wh))==MMSYSERR_NOERROR) {
while(!(wh.dwFlags & WHDR_DONE))
SLEEP(1);
}
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment