Exemple #1
0
 public virtual void Dispose()
 {
     foreach (var deviceBuffer in deviceBuffers)
     {
         AudioLayer.BufferDestroy(deviceBuffer);
     }
 }
Exemple #2
0
 /// <summary>
 /// Destroys the instance.
 /// </summary>
 protected virtual void Destroy()
 {
     foreach (var deviceBuffer in deviceBuffers)
     {
         AudioLayer.BufferDestroy(deviceBuffer);
     }
 }
Exemple #3
0
        /// <summary>
        /// Destroys the instance.
        /// </summary>
        protected override void Destroy()
        {
            if (AudioEngine == null || AudioEngine.State == AudioEngineState.Invalidated)
            {
                return;
            }

            if (!StreamFromDisk)
            {
                AudioLayer.BufferDestroy(PreloadedBuffer);
            }
        }