diff options
author | D G Turner | 2014-02-14 15:34:22 +0000 |
---|---|---|
committer | D G Turner | 2014-02-14 15:34:22 +0000 |
commit | c5e7aa8e93cbc1bea8442ac88a4e6db9873763e2 (patch) | |
tree | dc0bbae9f7d31701a00d0e9c9d7f57084c68408b /backends/mixer/sdl | |
parent | 6d38d25af3168c3b56f11179afa1f51ccaffeda1 (diff) | |
download | scummvm-rg350-c5e7aa8e93cbc1bea8442ac88a4e6db9873763e2.tar.gz scummvm-rg350-c5e7aa8e93cbc1bea8442ac88a4e6db9873763e2.tar.bz2 scummvm-rg350-c5e7aa8e93cbc1bea8442ac88a4e6db9873763e2.zip |
SDL: Add warning if "waveout" driver is being used for audio.
This will help avoid bug reports like #6510 - "SDL: Audio delay
in daily builds" in future.
Diffstat (limited to 'backends/mixer/sdl')
-rw-r--r-- | backends/mixer/sdl/sdl-mixer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/mixer/sdl/sdl-mixer.cpp b/backends/mixer/sdl/sdl-mixer.cpp index cebeac23bc..c5c717f75c 100644 --- a/backends/mixer/sdl/sdl-mixer.cpp +++ b/backends/mixer/sdl/sdl-mixer.cpp @@ -63,6 +63,10 @@ void SdlMixerManager::init() { sdlDriverName[0] = '\0'; SDL_AudioDriverName(sdlDriverName, maxNameLen); debug(1, "Using SDL Audio Driver \"%s\"", sdlDriverName); + + // Warning if SDL on Windows is using the fallback waveout driver, rather than the nominal DX DirectSound driver, which can cause issues with audio. + if (strcmp(sdlDriverName, "waveout") == 0) + warning("Using the fallback \"waveout\" SDL audio driver instead of \"dsound\" can cause audio lag. Fix your DirectX setup and/or SDL.dll to avoid this."); // Get the desired audio specs SDL_AudioSpec desired = getAudioSpec(SAMPLES_PER_SEC); |