aboutsummaryrefslogtreecommitdiff
path: root/backends/mixer
diff options
context:
space:
mode:
authorCeRiAl2011-07-15 00:24:44 +0200
committerCeRiAl2011-07-15 01:39:21 +0200
commit6092b324f39f7370da0257c0a2d32ccae55f81fe (patch)
treebff36a38d977ae44bd4e7182a39792f373c98882 /backends/mixer
parent482fcea8f3c57c7db12a81a3e124bc7b6e3594a5 (diff)
downloadscummvm-rg350-6092b324f39f7370da0257c0a2d32ccae55f81fe.tar.gz
scummvm-rg350-6092b324f39f7370da0257c0a2d32ccae55f81fe.tar.bz2
scummvm-rg350-6092b324f39f7370da0257c0a2d32ccae55f81fe.zip
WINCE: Change default values for "FM_high_quality" & "high_sample_rate"
Changed the default values from "false" to "true" as current devices are fast enough to handle this. It's still possible to change the values to "false" if the device isn't fast enough.
Diffstat (limited to 'backends/mixer')
-rw-r--r--backends/mixer/wincesdl/wincesdl-mixer.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/backends/mixer/wincesdl/wincesdl-mixer.cpp b/backends/mixer/wincesdl/wincesdl-mixer.cpp
index 36ac310ad9..c7659cb0f5 100644
--- a/backends/mixer/wincesdl/wincesdl-mixer.cpp
+++ b/backends/mixer/wincesdl/wincesdl-mixer.cpp
@@ -131,15 +131,20 @@ uint32 WINCESdlMixerManager::compute_sample_rate() {
ConfMan.setBool("FM_medium_quality", true);
ConfMan.flushToDisk();
}
+ } else {
+ if (!ConfMan.hasKey("FM_high_quality") && !ConfMan.hasKey("FM_medium_quality")) {
+ ConfMan.setBool("FM_high_quality", true);
+ ConfMan.flushToDisk();
+ }
}
// See if the output frequency is forced by the game
if (gameid == "ft" || gameid == "dig" || gameid == "comi" || gameid == "queen" || gameid == "sword" || gameid == "agi")
sampleRate = SAMPLES_PER_SEC_NEW;
else {
- if (ConfMan.hasKey("high_sample_rate") && ConfMan.getBool("high_sample_rate"))
- sampleRate = SAMPLES_PER_SEC_NEW;
- else
+ if (ConfMan.hasKey("high_sample_rate") && !ConfMan.getBool("high_sample_rate"))
sampleRate = SAMPLES_PER_SEC_OLD;
+ else
+ sampleRate = SAMPLES_PER_SEC_NEW;
}
#ifdef USE_VORBIS