/// <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); }
void PlaySilence() { var note = new Silence(NoteDuration); note.NotePlayer = note.PlayWithSound; if (Recording) { track.Notes.Add(note); Console.Write(note.Name + " "); } note.Play(CurrentMusicStyle.BPM); }