示例#1
0
        public static string GetTrackLength(CueSheetTrack currentTrack, CueSheetTrack nextTrack)
        {
            var currentTrackPosition = CueSheetIndex.ToTimeSpan(currentTrack.Index.Time);
            var nextTrackPosition    = CueSheetIndex.ToTimeSpan(nextTrack.Index.Time);
            var trackLength          = nextTrackPosition - currentTrackPosition;

            return(CueSheetIndex.FromTimeSpan(trackLength));
        }
示例#2
0
 public BassCueStreamAdvice(string fileName, string offset, string length) : base(fileName)
 {
     this.Offset = CueSheetIndex.ToTimeSpan(offset);
     this.Length = CueSheetIndex.ToTimeSpan(length);
 }