diff options
author | Max Horn | 2010-03-10 21:01:44 +0000 |
---|---|---|
committer | Max Horn | 2010-03-10 21:01:44 +0000 |
commit | c97ee14a65afc0b8a11ef5c10105e966f67a5934 (patch) | |
tree | 0514519a8d07564c3f572689b5bd75ed99111dea /backends/platform/PalmOS/Src | |
parent | 5af51ba9a1f60f740401fdb513d1a961c590e527 (diff) | |
download | scummvm-rg350-c97ee14a65afc0b8a11ef5c10105e966f67a5934.tar.gz scummvm-rg350-c97ee14a65afc0b8a11ef5c10105e966f67a5934.tar.bz2 scummvm-rg350-c97ee14a65afc0b8a11ef5c10105e966f67a5934.zip |
Remove last traces of OSystem::getOutputSampleRate()
svn-id: r48229
Diffstat (limited to 'backends/platform/PalmOS/Src')
-rw-r--r-- | backends/platform/PalmOS/Src/be_base.h | 3 | ||||
-rw-r--r-- | backends/platform/PalmOS/Src/os5_sound.cpp | 9 |
2 files changed, 5 insertions, 7 deletions
diff --git a/backends/platform/PalmOS/Src/be_base.h b/backends/platform/PalmOS/Src/be_base.h index 1d5883be38..30130ebfff 100644 --- a/backends/platform/PalmOS/Src/be_base.h +++ b/backends/platform/PalmOS/Src/be_base.h @@ -184,8 +184,6 @@ protected: Boolean _useNumPad, _showBatLow; UInt32 _batCheckTicks, _batCheckLast; - int _samplesPerSec; - public: void initBackend(); @@ -251,7 +249,6 @@ public: virtual void unlockMutex(MutexRef mutex) {} virtual void deleteMutex(MutexRef mutex) {} - int getOutputSampleRate() const { return _samplesPerSec; } virtual Audio::Mixer *getMixer(); void quit(); diff --git a/backends/platform/PalmOS/Src/os5_sound.cpp b/backends/platform/PalmOS/Src/os5_sound.cpp index 7553f032a9..1898f6ae90 100644 --- a/backends/platform/PalmOS/Src/os5_sound.cpp +++ b/backends/platform/PalmOS/Src/os5_sound.cpp @@ -98,10 +98,11 @@ bool OSystem_PalmOS5::setSoundCallback(SoundProc proc, void *param) { _soundEx.set = false; _soundEx.dataP = NULL; // set by the handler + uint32 samplesPerSec; if (ConfMan.hasKey("output_rate")) - _samplesPerSec = ConfMan.getInt("output_rate"); + samplesPerSec = ConfMan.getInt("output_rate"); else - _samplesPerSec = SAMPLES_PER_SEC; + samplesPerSec = SAMPLES_PER_SEC; // try to create sound stream if (OPTIONS_TST(kOptPalmSoundAPI)) { @@ -109,7 +110,7 @@ bool OSystem_PalmOS5::setSoundCallback(SoundProc proc, void *param) { &_soundEx.handle, sndOutput, sndFormatPCM, - _samplesPerSec, + samplesPerSec, sndInt16Little, sndStereo, sound_callback(), @@ -132,7 +133,7 @@ bool OSystem_PalmOS5::setSoundCallback(SoundProc proc, void *param) { } // if not true some scenes (indy3 256,...) may freeze (ESC to skip) - _mixerMgr->setOutputRate(_samplesPerSec); + _mixerMgr->setOutputRate(samplesPerSec); _mixerMgr->setReady(true); return true; |