/// <summary> /// Frees all Resources used by this instance. /// </summary> public void Dispose() { _device.Dispose(); _silencePlayer?.Dispose(); _buffer = null; }
/// <summary> /// Frees up the resources used by this instant. /// </summary> public void Dispose() { BassWasapi.CurrentDevice = _deviceIndex; BassWasapi.Free(); _silencePlayer?.Dispose(); }