From 8bd78b6325213695116c1494c65795406d797b0b Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Thu, 2 Jun 2011 19:43:44 +0200 Subject: PS3: Add a SDL 1.3 mixer, for use with the PS3 backend. SDL 1.3 allows converting from the S16SYS sound format to F32MSB, which is required by the PS3. --- backends/platform/sdl/ps3/ps3.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backends/platform/sdl') diff --git a/backends/platform/sdl/ps3/ps3.cpp b/backends/platform/sdl/ps3/ps3.cpp index 49739b8ba7..32be580f6e 100644 --- a/backends/platform/sdl/ps3/ps3.cpp +++ b/backends/platform/sdl/ps3/ps3.cpp @@ -30,6 +30,7 @@ #include "backends/graphics/surfacesdl/surfacesdl-graphics.h" #include "backends/saves/default/default-saves.h" #include "backends/fs/ps3/ps3-fs-factory.h" +#include "backends/mixer/sdl13/sdl13-mixer.h" #include #include @@ -65,6 +66,14 @@ void OSystem_PS3::initBackend() { if (_savefileManager == 0) _savefileManager = new DefaultSaveFileManager(PREFIX "/saves"); + // Create the mixer manager + if (_mixer == 0) { + _mixerManager = new Sdl13MixerManager(); + + // Setup and start mixer + _mixerManager->init(); + } + // Invoke parent implementation of this method OSystem_SDL::initBackend(); } -- cgit v1.2.3