X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..a66bf817a6ba833ad47cefc9fa8948ef8045a59d:/src/unix/sound_sdl.cpp diff --git a/src/unix/sound_sdl.cpp b/src/unix/sound_sdl.cpp index 3962e6dc72..e7e847af5c 100644 --- a/src/unix/sound_sdl.cpp +++ b/src/unix/sound_sdl.cpp @@ -213,7 +213,11 @@ bool wxSoundBackendSDL::OpenAudio() { #if wxUSE_LOG_DEBUG char driver[256]; +#if SDL_MAJOR_VERSION == 1 SDL_AudioDriverName(driver, 256); +#elif SDL_MAJOR_VERSION > 1 + strncpy(driver, SDL_GetCurrentAudioDriver(), 256); +#endif wxLogTrace(wxT("sound"), wxT("opened audio, driver '%s'"), wxString(driver, wxConvLocal).c_str()); #endif