aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/dcmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/dc/dcmain.cpp')
-rw-r--r--backends/platform/dc/dcmain.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/platform/dc/dcmain.cpp b/backends/platform/dc/dcmain.cpp
index 8ad4708ebf..5a9286093f 100644
--- a/backends/platform/dc/dcmain.cpp
+++ b/backends/platform/dc/dcmain.cpp
@@ -55,9 +55,10 @@ void OSystem_Dreamcast::initBackend()
{
ConfMan.setInt("autosave_period", 0);
_savefile = createSavefileManager();
- _mixer = new Audio::MixerImpl(this);
_timer = new DefaultTimerManager();
- _mixer->setOutputRate(initSound());
+
+ uint sampleRate = initSound();
+ _mixer = new Audio::MixerImpl(this, sampleRate);
_mixer->setReady(true);
}