Fix so sound looping will stop, courtesy of Ryan Norton.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
22b636aa15
commit
2116a0d13a
@ -234,6 +234,8 @@ bool wxSound::Create(const wxString& fileName, bool isResource)
|
||||
if(!wxInitQT())
|
||||
return false;
|
||||
|
||||
FreeData();
|
||||
|
||||
if (isResource)
|
||||
{
|
||||
#ifdef __WXMAC__
|
||||
@ -260,7 +262,8 @@ bool wxSound::Create(const wxString& fileName, bool isResource)
|
||||
|
||||
bool wxSound::DoPlay(unsigned flags) const
|
||||
{
|
||||
wxASSERT(m_pTimer == NULL || !((wxTimer*)m_pTimer)->IsRunning() );
|
||||
// wxASSERT(m_pTimer == NULL || !((wxTimer*)m_pTimer)->IsRunning() );
|
||||
FreeData();
|
||||
|
||||
Movie movie;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user