diff options
-rw-r--r-- | backends/platform/wince/wince-sdl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index 04d7753ebc..a619993663 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -627,10 +627,13 @@ bool OSystem_WINCE3::setSoundCallback(SoundProc proc, void *param) { desired.thread_priority = thread_priority; + SDL_CloseAudio(); if (SDL_OpenAudio(&desired, NULL) != 0) { warning("Could not open audio device: %s", SDL_GetError()); return false; } + else + warning("Sound opened OK, mixing at %d Hz", _sampleRate); SDL_PauseAudio(0); return true; } |