// Return false if event doesn't exist public bool ReleaseAudio(AudioEvent _audio) { bool success = false; if (_audio != null) { _audio.Release(); m_audioList.Remove(_audio); success = true; } return(success); }
// Return false if event doesn't exist public bool ReleaseAudio(string _name) { bool success = false; AudioEvent audio = GetAudioByName(_name); if (audio != null) { audio.Release(); m_audioList.Remove(audio); success = true; } return(success); }