public void AddTrack(CDTrack track) { _tracks.Add(track); if (track.IsAudio) { _audioTracks++; if (!_tracks[_firstAudio].IsAudio) { _firstAudio = _tracks.Count - 1; } } }
public CDTrack(CDTrack src) { _number = src._number; _start = src._start; _length = src._length; _isAudio = src._isAudio; _preEmphasis = src._preEmphasis; _dcp = src._dcp; _isrc = src._isrc; _indexes = new List<CDTrackIndex>(); for (int i = 0; i < src._indexes.Count; i++) _indexes.Add(new CDTrackIndex(src._indexes[i])); }
public CDTrack(CDTrack src) { _number = src._number; _start = src._start; _length = src._length; _isAudio = src._isAudio; _preEmphasis = src._preEmphasis; _dcp = src._dcp; _isrc = src._isrc; _indexes = new List <CDTrackIndex>(); for (int i = 0; i < src._indexes.Count; i++) { _indexes.Add(new CDTrackIndex(src._indexes[i])); } }
public void InsertTrack(CDTrack track) { _tracks.Insert((int)track.Number - 1, track); for (int i = (int)track.Number; i < _tracks.Count; i++) { _tracks[i].Number++; } if (track.IsAudio) { _audioTracks++; } if (!track.IsAudio && track.Number <= FirstAudio) { _firstAudio++; } }
public void AddTrack(CDTrack track) { _tracks.Add(track); if (track.IsAudio) { _audioTracks++; if (!_tracks[_firstAudio].IsAudio) _firstAudio = _tracks.Count - 1; } }
public void InsertTrack(CDTrack track) { _tracks.Insert((int)track.Number - 1, track); for (int i = (int)track.Number; i < _tracks.Count; i++) _tracks[i].Number++; if (track.IsAudio) _audioTracks++; if (!track.IsAudio && track.Number <= FirstAudio) _firstAudio++; }