public static RecordedTrack convertSpotTrack(SpotTrack track) { RecordedTrack r = new RecordedTrack(track.Artist, track.Title); r.Path = track.Path; return r; }
/// <summary> /// Records a track to the specified directory /// </summary> /// <param name="track">Track which should be saved</param> protected void recordTrack(SpotTrack track) { stopRecording(); if (recorder == null) { Filters f = new Filters(); recorder = new Capture(null, RecordingDevice); recorder.CaptureComplete += new EventHandler(recorder_CaptureComplete); } recorder.Filename = FileDirectory + string.Format("{0} - {1}", track.Artist, track.Title) + ".wav"; track.Path = recorder.Filename; lastRecordedTrack = track; recorder.Start(); }
public TrackRecordedEventArgs(SpotTrack track) { this.Track = track; }