aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorBastien Bouclet2011-06-02 19:43:44 +0200
committerBastien Bouclet2011-06-22 19:57:38 +0200
commit8bd78b6325213695116c1494c65795406d797b0b (patch)
treecae4d74e75cc4f68f9c25411102414abebafbdc2 /backends/platform
parent11cfa0d357193826fdf27b9f6fe07e71038d5eef (diff)
downloadscummvm-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')
-rw-r--r--backends/platform/sdl/ps3/ps3.cpp9
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();
}