fixing macOS sound crash
make sure no completion call gets triggered after this point
This commit is contained in:
@@ -94,6 +94,7 @@ void wxOSXAudioToolboxSoundData::DoStop()
|
|||||||
if ( m_playing )
|
if ( m_playing )
|
||||||
{
|
{
|
||||||
m_playing = false;
|
m_playing = false;
|
||||||
|
AudioServicesRemoveSystemSoundCompletion(m_soundID);
|
||||||
AudioServicesDisposeSystemSoundID (m_soundID);
|
AudioServicesDisposeSystemSoundID (m_soundID);
|
||||||
|
|
||||||
wxSound::SoundStopped(this);
|
wxSound::SoundStopped(this);
|
||||||
|
Reference in New Issue
Block a user