aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp3
-rw-r--r--sound/mixer_intern.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 08a4ad921d..17ae723650 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -431,6 +431,9 @@ int MixerImpl::getVolumeForSoundType(SoundType type) const {
return _volumeForSoundType[type];
}
+void MixerImpl::setSampleRate(uint sampleRate) {
+ _sampleRate = sampleRate;
+}
#pragma mark -
#pragma mark --- Channel implementations ---
diff --git a/sound/mixer_intern.h b/sound/mixer_intern.h
index 014be7abf2..c1b7df941f 100644
--- a/sound/mixer_intern.h
+++ b/sound/mixer_intern.h
@@ -60,7 +60,7 @@ private:
OSystem *_syst;
Common::Mutex _mutex;
- const uint _sampleRate;
+ uint _sampleRate;
bool _mixerReady;
uint32 _handleSeed;
@@ -127,6 +127,8 @@ public:
* their audio system has been completed.
*/
void setReady(bool ready);
+
+ void setSampleRate(uint sampleRate);
};