aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index b67b0c782b..40dfe8b3be 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -111,11 +111,6 @@ SoundMixer::SoundMixer() {
_premixProc = 0;
int i = 0;
- _outputRate = (uint) _syst->getOutputSampleRate();
-
- if (_outputRate == 0)
- error("OSystem returned invalid sample rate");
-
_globalVolume = 0;
_musicVolume = 0;
@@ -125,6 +120,12 @@ SoundMixer::SoundMixer() {
_channels[i] = 0;
_mixerReady = _syst->setSoundCallback(mixCallback, this);
+ _outputRate = (uint) _syst->getOutputSampleRate();
+
+ if (_outputRate == 0)
+ error("OSystem returned invalid sample rate");
+
+ debug(1, "Output sample rate: %d Hz", _outputRate);
}
SoundMixer::~SoundMixer() {