29#if JUCE_USE_CDREADER || DOXYGEN
71 bool readSamples (
int*
const* destSamples,
int numDestChannels,
int startOffsetInDestBuffer,
72 int64 startSampleInFile,
int numSamples)
override;
144 framesPerSecond = 75,
145 samplesPerFrame = 44100 / framesPerSecond
155 int currentReaderTrack;
160 bool audioTracks [100];
163 bool indexingEnabled;
164 int lastIndex, firstFrameInBuffer, samplesInBuffer;
166 int getIndexAt (
int samplePos);
168 #elif JUCE_LINUX || JUCE_BSD
Holds a resizable array of primitive or copy-by-value objects.
A type of AudioFormatReader that reads from an audio CD.
bool isCDStillPresent() const
Checks whether the CD has been removed from the drive.
int getLastIndex() const
Returns the index number found during the last read() call.
int getCDDBId()
Returns the CDDB id number for the CD.
void ejectDisk()
Tries to eject the disk.
bool readSamples(int *const *destSamples, int numDestChannels, int startOffsetInDestBuffer, int64 startSampleInFile, int numSamples) override
Implementation of the AudioFormatReader method.
static StringArray getAvailableCDNames()
Returns a list of names of Audio CDs currently available for reading.
static AudioCDReader * createReaderForCD(int index)
Tries to create an AudioFormatReader that can read from an Audio 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).
void enableIndexScanning(bool enabled)
Enables scanning for indexes within tracks.
~AudioCDReader() override
Destructor.
const Array< int > & getTrackOffsets() const
Returns an array of sample offsets for the start of each track, followed by the sample position of th...
bool isTrackAudio(int trackNum) const
Returns true if a given track is an audio track.
Array< int > findIndexesInTrack(int trackNumber)
Scans a track to find the position of any indexes within it.
void refreshTrackLengths()
Refreshes the object's table of contents.
Represents a local file or directory.
A class to hold a resizable block of raw data.
A special array for holding a list of strings.
long long int64
A platform-independent 64-bit integer type.