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)); }
public BassCueStreamAdvice(string fileName, string offset, string length) : base(fileName) { this.Offset = CueSheetIndex.ToTimeSpan(offset); this.Length = CueSheetIndex.ToTimeSpan(length); }