diff options
Diffstat (limited to 'backends/mixer/sdl')
| -rw-r--r-- | backends/mixer/sdl/sdl-mixer.cpp | 5 | 
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. | 
