From ed885bb958285c964c959edba40971a15f09a99a Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sat, 5 Nov 2005 11:52:55 +0000 Subject: Added FM_*_quality support svn-id: r19459 --- backends/PalmOS/Src/os5_sound.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backends') 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 -- cgit v1.2.3