Ejemplo n.º 1
0
        /// <summary>
        /// Frees all Resources used by this instance.
        /// </summary>
        public void Dispose()
        {
            _device.Dispose();
            _silencePlayer?.Dispose();

            _buffer = null;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Frees up the resources used by this instant.
 /// </summary>
 public void Dispose()
 {
     BassWasapi.CurrentDevice = _deviceIndex;
     BassWasapi.Free();
     _silencePlayer?.Dispose();
 }