예제 #1
0
 /// <summary>
 /// Platform specifc implementation of <see cref="Destroy"/>.
 /// </summary>
 internal void DestroyAudioEngine()
 {
     if (AudioDevice.Ptr != IntPtr.Zero)
     {
         AudioLayer.ListenerDestroy(DefaultListener.Listener);
         AudioLayer.Destroy(AudioDevice);
     }
 }
예제 #2
0
        /// <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
        }