From 846f520ed69281dc113cfb71b5e7fa76da88cc51 Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Thu, 9 Dec 2004 16:33:54 +0000 Subject: fix potential race condition svn-id: r16003 --- sword1/music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sword1/music.cpp b/sword1/music.cpp index cf01b50b5a..d24203bc2f 100644 --- a/sword1/music.cpp +++ b/sword1/music.cpp @@ -234,11 +234,11 @@ Music::Music(OSystem *system, SoundMixer *pMixer) { _system = system; _mixer = pMixer; _sampleRate = pMixer->getOutputRate(); - _mixer->setupPremix(this); _mutex = _system->createMutex(); _converter[0] = NULL; _converter[1] = NULL; _volumeL = _volumeR = 192; + _mixer->setupPremix(this); } Music::~Music() { -- cgit v1.2.3