no dsound for emulated devices

This commit is contained in:
Glenn Maynard
2002-12-21 07:40:19 +00:00
parent bbc7c98a68
commit a5ea5cc6a5
@@ -166,6 +166,11 @@ RageSound_DSound_Software::RageSound_DSound_Software()
/* 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)";
/* Create a DirectSound stream, but don't force it into hardware. */
str_ds = new DSoundBuf(ds,
DSoundBuf::HW_DONT_CARE,