Don't allow trying to use a sound driver that is not in the list for the platform.

This commit is contained in:
Kyzentun Keeslala
2016-06-07 18:28:06 -06:00
parent 4c48e962e4
commit d6cf7575b2
3 changed files with 45 additions and 5 deletions
+5
View File
@@ -55,6 +55,11 @@ RageSoundManager::~RageSoundManager()
m_mapPreloadedSounds.clear();
}
void RageSoundManager::fix_bogus_sound_driver_pref(RString const& valid_setting)
{
g_sSoundDrivers.Set(valid_setting);
}
/*
* Previously, we went to some lengths to shut down sounds before exiting threads.
* The only other thread that actually starts sounds is SOUND. Doing this was ugly;