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:
@@ -234,6 +234,8 @@ bool wxSound::Create(const wxString& fileName, bool isResource)
|
|||||||
if(!wxInitQT())
|
if(!wxInitQT())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
FreeData();
|
||||||
|
|
||||||
if (isResource)
|
if (isResource)
|
||||||
{
|
{
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
@@ -260,7 +262,8 @@ bool wxSound::Create(const wxString& fileName, bool isResource)
|
|||||||
|
|
||||||
bool wxSound::DoPlay(unsigned flags) const
|
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;
|
Movie movie;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user