renamed wxWave to wxSound; compatibility fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2004-02-02 13:34:35 +00:00
parent 321b8029b3
commit f156e20c8e
2 changed files with 6 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
// Modified by:
// Created: 25/10/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart, Vaclav Slavik
// Copyright: (c) Julian Smart, Open Source Applications Foundation
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -23,7 +23,7 @@
#pragma hdrstop
#endif
#if wxUSE_WAVE
#if wxUSE_SOUND
#include <stdio.h>
#include <unistd.h>
@@ -515,10 +515,8 @@ bool wxSound::Create(int size, const wxByte* data)
}
}
bool wxSound::DoPlay(unsigned flags)
bool wxSound::DoPlay(unsigned flags) const
{
wxASSERT_MSG( (flags & wxSOUND_LOOP) == 0 || (flags & wxSOUND_ASYNC) != 0,
_T("sound can only be looped asynchronously") );
wxCHECK_MSG( IsOk(), false, _T("Attempt to play invalid wave data") );
EnsureBackend();

View File

@@ -5,7 +5,7 @@
// Modified by:
// Created: 2004/01/31
// RCS-ID: $Id$
// Copyright: (c) 2004, Vaclav Slavik
// Copyright: (c) 2004, Open Source Applications Foundation
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
@@ -18,7 +18,7 @@
#pragma hdrstop
#endif
#if wxUSE_WAVE && wxUSE_LIBSDL
#if wxUSE_SOUND && wxUSE_LIBSDL
#include <SDL.h>
@@ -335,4 +335,4 @@ extern "C" wxSoundBackend *wxCreateSoundBackendSDL()
return new wxSoundBackendSDL();
}
#endif // wxUSE_WAVE && wxUSE_LIBSDL
#endif // wxUSE_SOUND && wxUSE_LIBSDL