33 return trackStartSamples.
size() - 1;
43 return trackStartSamples;
52 for (
int offset = (trackStartSamples.
getUnchecked (i) + 88200) / 44100; offset > 0; offset /= 10)
53 checksum += offset % 10;
55 const int length = (trackStartSamples.
getLast() - trackStartSamples.
getFirst()) / 44100;
58 return ((checksum & 0xff) << 24) | (length << 8) |
numTracks;
ElementType getUnchecked(int index) const
Returns one of the elements in the array, without checking the index passed in.
int size() const noexcept
Returns the current number of elements in the array.
ElementType getFirst() const noexcept
Returns the first element in the array, or a default value if the array is empty.
ElementType getLast() const noexcept
Returns the last element in the array, or a default value if the array is empty.
int getCDDBId()
Returns the CDDB id number for the CD.
int getPositionOfTrackStart(int trackNum) const
Finds the sample offset of the start of a track.
int getNumTracks() const
Returns the total number of tracks (audio + data).
const Array< int > & getTrackOffsets() const
Returns an array of sample offsets for the start of each track, followed by the sample position of th...
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...