diff options
author | Bastien Bouclet | 2011-06-02 19:43:44 +0200 |
---|---|---|
committer | Bastien Bouclet | 2011-06-22 19:57:38 +0200 |
commit | 8bd78b6325213695116c1494c65795406d797b0b (patch) | |
tree | cae4d74e75cc4f68f9c25411102414abebafbdc2 /backends/platform/sdl | |
parent | 11cfa0d357193826fdf27b9f6fe07e71038d5eef (diff) | |
download | scummvm-rg350-8bd78b6325213695116c1494c65795406d797b0b.tar.gz scummvm-rg350-8bd78b6325213695116c1494c65795406d797b0b.tar.bz2 scummvm-rg350-8bd78b6325213695116c1494c65795406d797b0b.zip |
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.
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/ps3/ps3.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <dirent.h> #include <sys/stat.h> @@ -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(); } |