Don't fall back on OSS if ALSA is in use.

This commit is contained in:
Glenn Maynard
2003-11-14 05:55:48 +00:00
parent 3513e5963a
commit 84dd35ba23
@@ -169,6 +169,15 @@ int RageSound_OSS::GetPosition(const RageSound *snd) const
RageSound_OSS::RageSound_OSS()
{
/* If /proc/asound exists, then we're running ALSA. If we got here, we
* probably failed to init ALSA. The only case I've seen of this so far
* was not having access to /dev/snd devices.
*
* Don't run OSS under ALSA; we'll get emulation, and ALSA's OSS emulation
* is buggy. */
if( IsADirectory("/proc/asound") )
RageException::ThrowNonfatal( "RageSound_OSS: ALSA detected. ALSA OSS emulation is buggy; use ALSA natively.");
shutdown = false;
last_cursor_pos = 0;