]> git.saurik.com Git - wxWidgets.git/commitdiff
try SDL backend before OSS, it works better (temporary solution, will need better...
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 11 Mar 2004 16:40:44 +0000 (16:40 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 11 Mar 2004 16:40:44 +0000 (16:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/sound.cpp

index 63dd28625877cacd00d5577c943eb2cdce20f255..d2470481f64a3f66f00d80ef49a82e10553106d1 100644 (file)
@@ -449,16 +449,8 @@ bool wxSound::Create(int size, const wxByte* data)
     {
         // FIXME -- make this fully dynamic when plugins architecture is in
         // place
-#ifdef HAVE_SYS_SOUNDCARD_H
-        ms_backend = new wxSoundBackendOSS();
-        if (!ms_backend->IsAvailable())
-        {
-            wxDELETE(ms_backend);
-        }
-#endif
-
 #if wxUSE_LIBSDL
-        if (!ms_backend)
+        //if (!ms_backend)
         {
 #if !wxUSE_PLUGINS
             ms_backend = wxCreateSoundBackendSDL();
@@ -495,6 +487,17 @@ bool wxSound::Create(int size, const wxByte* data)
         }
 #endif
 
+#ifdef HAVE_SYS_SOUNDCARD_H
+        if (!ms_backend)
+        {
+            ms_backend = new wxSoundBackendOSS();
+            if (!ms_backend->IsAvailable())
+            {
+                wxDELETE(ms_backend);
+            }
+        }
+#endif
+
         if (!ms_backend)
             ms_backend = new wxSoundBackendNull();