public void Teardown() { m_masterChannelGroup.release(); m_fmodSystem.update(); m_fmodSystem.close(); m_fmodSystem.release(); }
protected override void Dispose(bool disposing) { if (disposing) { FMOD.RESULT result; /* * Shut down */ for (int count = 0; count < 6; count++) { if (sound[count] != null) { result = sound[count].release(); ERRCHECK(result); } } if (groupA != null) { result = groupA.release(); ERRCHECK(result); } if (groupB != null) { result = groupB.release(); ERRCHECK(result); } if (system != null) { result = system.close(); ERRCHECK(result); result = system.release(); ERRCHECK(result); } if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
public void Dispose() { if (_external) { return; } lock (_engine.Lock) { if (_isDisposed) { return; } _isDisposed = true; _channelGroup.release(); _channelGroup = null; _engine.RemoveGrouping(this); } }