From 3209f765e9c9471a6507b4f782a75424998b12ba Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 11 Mar 2004 16:40:44 +0000 Subject: [PATCH] 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 --- src/unix/sound.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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(); -- 2.45.2