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