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
@@ -163,13 +163,10 @@ RageSound_DSound_Software::RageSound_DSound_Software()
{
shutdown = false;
/* XXX make another exception type that doesn't trigger debug stuff
* and use that */
/* If we're emulated, we're better off with the WaveOut driver; DS
* emulation tends to be desynced. */
if(ds.IsEmulated())
throw "Driver unusable (emulated device)";
RageException::ThrowNonfatal("Driver unusable (emulated device)");
/* Create a DirectSound stream, but don't force it into hardware. */
str_ds = new DSoundBuf(ds,