示例#1
0
        /// <summary>
        /// Start Recording.
        /// </summary>
        public void Start()
        {
            _silencePlayer?.Play();

            BassWasapi.CurrentDevice = _deviceIndex;

            if (!BassWasapi.Start())
            {
                _silencePlayer?.Stop();
            }
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <summary>
        /// Stop Loopback Capture.
        /// </summary>
        /// <returns><see langword="true"/> on success, else <see langword="false"/>.</returns>
        public bool Stop()
        {
            _silencePlayer?.Stop();

            return(_device.Stop());
        }