TODO: handle WAVERR_STILLPLAYING in a better way (like, clearing the buffer?)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8198
d7cf8633-e32d-0410-b094-
e92efae38249
if (wResult != MMSYSERR_NOERROR)
{
- if (developer.integer >= 1000)
- Con_Print("waveOutWrite failed (too much sound data)\n");
- //SndSys_Shutdown ();
- //return;
+ if (wResult == WAVERR_STILLPLAYING)
+ {
+ if(developer.integer >= 1000)
+ Con_Print("waveOutWrite failed (too much sound data)\n");
+ }
+ else
+ {
+ Con_Printf("waveOutWrite failed, error code %d\n", (int) wResult);
+ SndSys_Shutdown ();
+ return;
+ }
}
paintpot -= wav_buffer_size;