aboutsummaryrefslogtreecommitdiff
path: root/backends/mixer
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-23 19:34:07 +0000
committerAlejandro Marzini2010-06-23 19:34:07 +0000
commit04dce6a10646d1060813c90c9270be46c36c02cd (patch)
tree36e77990e3be5a9c480027c2021f097e3f4a3eeb /backends/mixer
parent1811e86648e1afa7951284604f50a6b1557ac738 (diff)
downloadscummvm-rg350-04dce6a10646d1060813c90c9270be46c36c02cd.tar.gz
scummvm-rg350-04dce6a10646d1060813c90c9270be46c36c02cd.tar.bz2
scummvm-rg350-04dce6a10646d1060813c90c9270be46c36c02cd.zip
Fixed AudioCDManager not having a public inheritance. Backend code cleanup.
svn-id: r50189
Diffstat (limited to 'backends/mixer')
-rw-r--r--backends/mixer/sdl/sdl-mixer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/mixer/sdl/sdl-mixer.cpp b/backends/mixer/sdl/sdl-mixer.cpp
index 490489718d..04a97ce5cf 100644
--- a/backends/mixer/sdl/sdl-mixer.cpp
+++ b/backends/mixer/sdl/sdl-mixer.cpp
@@ -66,6 +66,11 @@ SdlMixerImpl::~SdlMixerImpl() {
}
uint SdlMixerImpl::getSamplesPerSec() {
+
+ if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) {
+ error("Could not initialize SDL: %s", SDL_GetError());
+ }
+
SDL_AudioSpec desired;
// Determine the desired output sampling frequency.