From: Václav Slavík Date: Thu, 11 Mar 2004 16:40:44 +0000 (+0000) Subject: try SDL backend before OSS, it works better (temporary solution, will need better... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3209f765e9c9471a6507b4f782a75424998b12ba try SDL backend before OSS, it works better (temporary solution, will need better fix) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/sound.cpp b/src/unix/sound.cpp index 63dd286258..d2470481f6 100644 --- a/src/unix/sound.cpp +++ b/src/unix/sound.cpp @@ -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();