aboutsummaryrefslogtreecommitdiff
path: root/backends/mixer
diff options
context:
space:
mode:
authorBastien Bouclet2014-06-27 16:45:58 +0200
committerBastien Bouclet2015-12-15 20:10:19 +0100
commitb9a107499911873a0f5e5452d292f6541f0f001a (patch)
tree2236e84a6afa3908bf4d2d1dec657b5a81222085 /backends/mixer
parentd80c39bb29638bed4bff6453502878eaa5afbbf9 (diff)
downloadscummvm-rg350-b9a107499911873a0f5e5452d292f6541f0f001a.tar.gz
scummvm-rg350-b9a107499911873a0f5e5452d292f6541f0f001a.tar.bz2
scummvm-rg350-b9a107499911873a0f5e5452d292f6541f0f001a.zip
PS3: Make use of an updated SDL2 version
This version, available at https://bitbucket.org/bgK/sdl_psl1ght, is based on SDL 2.0.3.
Diffstat (limited to 'backends/mixer')
-rw-r--r--backends/mixer/sdl2/sdl2-mixer.cpp (renamed from backends/mixer/sdl13/sdl13-mixer.cpp)14
-rw-r--r--backends/mixer/sdl2/sdl2-mixer.h (renamed from backends/mixer/sdl13/sdl13-mixer.h)10
2 files changed, 12 insertions, 12 deletions
diff --git a/backends/mixer/sdl13/sdl13-mixer.cpp b/backends/mixer/sdl2/sdl2-mixer.cpp
index dc38242bde..96a1361a8c 100644
--- a/backends/mixer/sdl13/sdl13-mixer.cpp
+++ b/backends/mixer/sdl2/sdl2-mixer.cpp
@@ -24,7 +24,7 @@
#if defined(SDL_BACKEND)
-#include "backends/mixer/sdl13/sdl13-mixer.h"
+#include "backends/mixer/sdl2/sdl2-mixer.h"
#include "common/debug.h"
#include "common/system.h"
#include "common/config-manager.h"
@@ -36,14 +36,14 @@
#define SAMPLES_PER_SEC 44100
#endif
-Sdl13MixerManager::Sdl13MixerManager()
+Sdl2MixerManager::Sdl2MixerManager()
:
SdlMixerManager(),
_device(0) {
}
-Sdl13MixerManager::~Sdl13MixerManager() {
+Sdl2MixerManager::~Sdl2MixerManager() {
_mixer->setReady(false);
SDL_CloseAudioDevice(_device);
@@ -51,7 +51,7 @@ Sdl13MixerManager::~Sdl13MixerManager() {
delete _mixer;
}
-void Sdl13MixerManager::init() {
+void Sdl2MixerManager::init() {
// Start SDL Audio subsystem
if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) {
error("Could not initialize SDL: %s", SDL_GetError());
@@ -81,17 +81,17 @@ void Sdl13MixerManager::init() {
}
}
-void Sdl13MixerManager::startAudio() {
+void Sdl2MixerManager::startAudio() {
// Start the sound system
SDL_PauseAudioDevice(_device, 0);
}
-void Sdl13MixerManager::suspendAudio() {
+void Sdl2MixerManager::suspendAudio() {
SDL_CloseAudioDevice(_device);
_audioSuspended = true;
}
-int Sdl13MixerManager::resumeAudio() {
+int Sdl2MixerManager::resumeAudio() {
if (!_audioSuspended)
return -2;
diff --git a/backends/mixer/sdl13/sdl13-mixer.h b/backends/mixer/sdl2/sdl2-mixer.h
index ff2bb43084..ce2616d92b 100644
--- a/backends/mixer/sdl13/sdl13-mixer.h
+++ b/backends/mixer/sdl2/sdl2-mixer.h
@@ -20,8 +20,8 @@
*
*/
-#ifndef BACKENDS_MIXER_SDL13_H
-#define BACKENDS_MIXER_SDL13_H
+#ifndef BACKENDS_MIXER_SDL2_H
+#define BACKENDS_MIXER_SDL2_H
#include "backends/mixer/sdl/sdl-mixer.h"
@@ -31,10 +31,10 @@
* the SDL audio subsystem and the callback for the
* audio mixer implementation.
*/
-class Sdl13MixerManager : public SdlMixerManager {
+class Sdl2MixerManager : public SdlMixerManager {
public:
- Sdl13MixerManager();
- virtual ~Sdl13MixerManager();
+ Sdl2MixerManager();
+ virtual ~Sdl2MixerManager();
/**
* Initialize and setups the mixer