]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/sound_sdl.cpp
support for @2x notation for wxBITMAP_TYPE_PNG (non-resource) on retina displays
[wxWidgets.git] / src / unix / sound_sdl.cpp
index 3962e6dc722038401cca5b8ff09c1381b3673a3c..e7e847af5ccacb6506ddfd58c91b83ab9879dd87 100644 (file)
@@ -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