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
This commit is contained in:
Václav Slavík
2004-03-11 16:40:44 +00:00
parent 20ed8fab85
commit 3209f765e9

View 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();