use nonfatal exceptions in drivers

This commit is contained in:
Glenn Maynard
2002-12-21 08:15:35 +00:00
parent 4d1caeb4ce
commit 678a07e035
5 changed files with 14 additions and 17 deletions
@@ -91,7 +91,7 @@ bool RageSound_WaveOut::GetPCM()
MMRESULT ret = waveOutWrite(wo, &buffers[b], sizeof(buffers[b]));
if(ret != MMSYSERR_NOERROR)
throw "blah";
RageException::ThrowNonfatal("blah"); // XXX
/* Increment last_cursor_pos to point at where the data we're about to
* ask for will actually be played. */
@@ -177,7 +177,7 @@ RageSound_WaveOut::RageSound_WaveOut()
(DWORD_PTR) sound_event, NULL, CALLBACK_EVENT);
if(ret != MMSYSERR_NOERROR)
throw "blah";
RageException::ThrowNonfatal("blah"); // XXX
for(int b = 0; b < num_chunks; ++b)
{
@@ -186,7 +186,7 @@ RageSound_WaveOut::RageSound_WaveOut()
buffers[b].lpData = new char[chunksize];
ret = waveOutPrepareHeader(wo, &buffers[b], sizeof(buffers[b]));
if(ret != MMSYSERR_NOERROR)
throw "blah";
RageException::ThrowNonfatal("blah"); // XXX
buffers[b].dwFlags |= WHDR_DONE;
}