aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/sdl.cpp5
-rw-r--r--backends/platform/sdl/sdl.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 574eeb5a9a..742f40511a 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -269,3 +269,8 @@ Audio::Mixer *OSystem_SDL::getMixer() {
assert(_mixerManager);
return _mixerManager->getMixer();
}
+
+SdlMixerManager *OSystem_SDL::getMixerManager() {
+ assert(_mixerManager);
+ return _mixerManager;
+}
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h
index c61b8c810f..c238422906 100644
--- a/backends/platform/sdl/sdl.h
+++ b/backends/platform/sdl/sdl.h
@@ -71,6 +71,9 @@ public:
// Get the Graphics Manager instance, used by other managers
virtual SdlGraphicsManager *getGraphicsManager();
+ // Get the Sdl Mixer Manager instance (not the Audio::Mixer)
+ virtual SdlMixerManager *getMixerManager();
+
protected:
bool _inited;
bool _initedSDL;