aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2005-11-05 11:52:55 +0000
committerChris Apers2005-11-05 11:52:55 +0000
commited885bb958285c964c959edba40971a15f09a99a (patch)
treed16e8cbebb76304ace89ab86eb06752c9b502b28 /backends
parentb39c659a7bd030b958100f407574d85146ced712 (diff)
downloadscummvm-rg350-ed885bb958285c964c959edba40971a15f09a99a.tar.gz
scummvm-rg350-ed885bb958285c964c959edba40971a15f09a99a.tar.bz2
scummvm-rg350-ed885bb958285c964c959edba40971a15f09a99a.zip
Added FM_*_quality support
svn-id: r19459
Diffstat (limited to 'backends')
-rwxr-xr-xbackends/PalmOS/Src/os5_sound.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/PalmOS/Src/os5_sound.cpp b/backends/PalmOS/Src/os5_sound.cpp
index 2526399836..251e3129ea 100755
--- a/backends/PalmOS/Src/os5_sound.cpp
+++ b/backends/PalmOS/Src/os5_sound.cpp
@@ -63,17 +63,21 @@ bool OSystem_PalmOS5::setSoundCallback(SoundProc proc, void *param) {
Boolean success = false;
if (!_sound.active) {
+ if (gVars->fmQuality != FM_QUALITY_INI) {
+ ConfMan.set("FM_medium_quality", (gVars->fmQuality == FM_QUALITY_MED));
+ ConfMan.set("FM_high_quality", (gVars->fmQuality == FM_QUALITY_HI));
+ }
+
_sound.proc = proc;
_sound.param = param;
_sound.active = true; // always true when we call this function, false when sound is off
_sound.handle = NULL;
-
if (ConfMan.hasKey("output_rate"))
_samplesPerSec = ConfMan.getInt("output_rate");
else
#ifdef PALMOS_ARM
- _samplesPerSec = 22050; // default value
+ _samplesPerSec = 44100; // default value
#else
_samplesPerSec = 8000; // default value
#endif