Пример #1
0
        /// <summary>
        /// Destroys the instance.
        /// </summary>
        protected virtual void DisposeInternal()
        {
            AudioLayer.SourceDestroy(SoundInstance.Source);

            foreach (var deviceBuffer in deviceBuffers)
            {
                AudioLayer.BufferDestroy(deviceBuffer);
            }

            deviceBuffers.Clear();
            freeBuffers.Clear();
            IsDisposed    = true;
            IsInitialized = false;
        }