示例#1
0
 public static RecordedTrack convertSpotTrack(SpotTrack track)
 {
     RecordedTrack r = new RecordedTrack(track.Artist, track.Title);
     r.Path = track.Path;
     return r;
 }
示例#2
0
        /// <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();
        }
示例#3
0
 public TrackRecordedEventArgs(SpotTrack track)
 {
     this.Track = track;
 }