private void RecordTrack(SpotifyTrackChanged spotifyTrackChanged) { if (!spotifyTrackChanged.IsStopped) { _recorder.Start(spotifyTrackChanged.Song, _deviceEnum.GetDevice(_recordingDeviceId)); } }
private void SongChanged(object sender, SpotifyTrackChanged spotifyTrackChanged) { if (IsRecording && _recorder != null) { var spotifyWav = _recorder?.Stop(); RecordTrack(spotifyTrackChanged); ConvertAndSave(spotifyWav); } }