/// <summary> /// Platform specifc implementation of <see cref="Destroy"/>. /// </summary> internal void DestroyAudioEngine() { if (AudioDevice.Ptr != IntPtr.Zero) { AudioLayer.ListenerDestroy(DefaultListener.Listener); AudioLayer.Destroy(AudioDevice); } }
/// <summary> /// Disposes the Listener /// </summary> public void Dispose() { if (Listener.Ptr == IntPtr.Zero) { return; } #if !SILICONSTUDIO_PLATFORM_IOS AudioLayer.ListenerDisable(Listener); AudioLayer.ListenerDestroy(Listener); #endif }