diff options
author | Max Horn | 2010-03-11 23:39:51 +0000 |
---|---|---|
committer | Max Horn | 2010-03-11 23:39:51 +0000 |
commit | 9b837d66d4647a7642a761cefe5798d30a21504a (patch) | |
tree | e5e96cd1a48850a699f0e77a748d415921f7b18e /sound/mixer_intern.h | |
parent | 5886a0cc7715c874919a7056dfb6b65d3be19dce (diff) | |
download | scummvm-rg350-9b837d66d4647a7642a761cefe5798d30a21504a.tar.gz scummvm-rg350-9b837d66d4647a7642a761cefe5798d30a21504a.tar.bz2 scummvm-rg350-9b837d66d4647a7642a761cefe5798d30a21504a.zip |
Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the MixerImpl constructor
svn-id: r48238
Diffstat (limited to 'sound/mixer_intern.h')
-rw-r--r-- | sound/mixer_intern.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sound/mixer_intern.h b/sound/mixer_intern.h index a1037f1107..2ccd1ff2bf 100644 --- a/sound/mixer_intern.h +++ b/sound/mixer_intern.h @@ -60,7 +60,7 @@ private: OSystem *_syst; Common::Mutex _mutex; - uint _sampleRate; + const uint _sampleRate; bool _mixerReady; uint32 _handleSeed; @@ -69,7 +69,8 @@ private: public: - MixerImpl(OSystem *system); + + MixerImpl(OSystem *system, uint sampleRate); ~MixerImpl(); virtual bool isReady() const { return _mixerReady; } @@ -123,21 +124,9 @@ public: /** * Set the internal 'is ready' flag of the mixer. * Backends should invoke Mixer::setReady(true) once initialisation of - * their audio system has been completed (and in particular, *after* - * setOutputRate() has been called). + * their audio system has been completed. */ void setReady(bool ready); - - /** - * Set the output sample rate. - * - * @param sampleRate the new output sample rate - * - * @note Right now, this can be done exactly ONCE. That is, the mixer - * currently does not support changing the output sample rate after it - * has been set for the first time. This may change in the future. - */ - void setOutputRate(uint sampleRate); }; |