/// <summary> /// Start Recording. /// </summary> public void Start() { _silencePlayer?.Play(); BassWasapi.CurrentDevice = _deviceIndex; if (!BassWasapi.Start()) { _silencePlayer?.Stop(); } }
/// <summary> /// Start Loopback Capture. /// </summary> /// <returns><see langword="true"/> on success, else <see langword="false"/>.</returns> public bool Start() { _silencePlayer?.Play(); var result = _device.Start(); if (_silencePlayer != null && !result) { _silencePlayer.Stop(); } return(result); }
/// <summary> /// Stop Loopback Capture. /// </summary> /// <returns><see langword="true"/> on success, else <see langword="false"/>.</returns> public bool Stop() { _silencePlayer?.Stop(); return(_device.Stop()); }