no dsound for emulated devices
This commit is contained in:
@@ -166,6 +166,11 @@ RageSound_DSound_Software::RageSound_DSound_Software()
|
|||||||
/* XXX make another exception type that doesn't trigger debug stuff
|
/* XXX make another exception type that doesn't trigger debug stuff
|
||||||
* and use that */
|
* 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. */
|
/* Create a DirectSound stream, but don't force it into hardware. */
|
||||||
str_ds = new DSoundBuf(ds,
|
str_ds = new DSoundBuf(ds,
|
||||||
DSoundBuf::HW_DONT_CARE,
|
DSoundBuf::HW_DONT_CARE,
|
||||||
|
|||||||
Reference in New Issue
Block a user