config.audioquality obviously should set soundFlags, not soundDriver

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2086 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2005-12-17 17:57:54 +00:00
parent 72e8bbe62b
commit 0f7b5d4caf
+9 -3
View File
@@ -281,15 +281,21 @@ main (int argc, char *argv[])
const char *qstr = res_GetString ("config.audioquality");
if (!strcmp (qstr, "low"))
{
options.soundDriver = audio_QUALITY_LOW;
options.soundFlags &=
~(audio_QUALITY_MEDIUM | audio_QUALITY_HIGH);
options.soundFlags |= audio_QUALITY_LOW;
}
else if (!strcmp (qstr, "medium"))
{
options.soundDriver = audio_QUALITY_MEDIUM;
options.soundFlags &=
~(audio_QUALITY_HIGH | audio_QUALITY_LOW);
options.soundFlags |= audio_QUALITY_MEDIUM;
}
else if (!strcmp (qstr, "high"))
{
options.soundDriver = audio_QUALITY_HIGH;
options.soundFlags &=
~(audio_QUALITY_MEDIUM | audio_QUALITY_LOW);
options.soundFlags |= audio_QUALITY_HIGH;
}
else
{