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:
+9
-3
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user