From c718463a24b1f49745b3f4201f11bb7dc5697b87 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 1 Nov 2006 21:28:14 +0000 Subject: Added Audio::Mixer::setReady method to work around bug #1588848 svn-id: r24583 --- backends/platform/sdl/sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backends/platform/sdl') diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 3e2416a791..d9bf951cf9 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -190,7 +190,8 @@ void OSystem_SDL::initBackend() { // allow subclasses to provide their own). if (_mixer == 0) { _mixer = new Audio::Mixer(); - setSoundCallback(Audio::Mixer::mixCallback, _mixer); + bool result = setSoundCallback(Audio::Mixer::mixCallback, _mixer); + _mixer->setReady(result); } // Create and hook up the timer manager, if none exists yet (we check for -- cgit v1.2.3