From: Robin Dunn Date: Thu, 22 Jul 2004 15:13:19 +0000 (+0000) Subject: Fix so sound looping will stop, courtesy of Ryan Norton. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2116a0d13ac5646c7bcf566dfba55efcf8c29347?ds=inline 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 --- diff --git a/src/mac/carbon/sound.cpp b/src/mac/carbon/sound.cpp index 5d8f7ddacc..21ea8612ad 100644 --- a/src/mac/carbon/sound.cpp +++ b/src/mac/carbon/sound.cpp @@ -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;