29#if JUCE_USE_CDBURNER || DOXYGEN
Holds a resizable array of primitive or copy-by-value objects.
Receives progress callbacks during a cd-burn operation.
virtual bool audioCDBurnProgress(float proportionComplete)=0
Called at intervals to report on the progress of the AudioCDBurner.
String burn(BurnProgressListener *listener, bool ejectDiscAfterwards, bool performFakeBurnForTesting, int writeSpeed)
Runs the burn process.
DiskState waitUntilStateChange(int timeOutMilliseconds)
Blocks the current thread until the drive's state changes, or until the timeout expires.
Array< int > getAvailableWriteSpeeds() const
Returns the set of possible write speeds that the device can handle.
@ readOnlyDiskPresent
The drive contains a read-only disk.
@ noDisc
The drive has no disk in it.
@ trayOpen
The drive is currently open.
@ unknown
An error condition, if the device isn't responding.
@ writableDiskPresent
The drive contains a writeable disk.
bool openTray()
Sends an eject signal to the drive.
bool isDiskPresent() const
Returns true if there's a writable disk in the drive.
void abortBurn()
If a burn operation is currently in progress, this tells it to stop as soon as possible.
bool setBufferUnderrunProtection(bool shouldBeEnabled)
Tries to enable or disable buffer underrun safety on devices that support it.
int getNumAvailableAudioBlocks() const
Returns the number of free blocks on the disk.
~AudioCDBurner()
Destructor.
bool addAudioTrack(AudioSource *source, int numSamples)
Adds a track to be written.
static StringArray findAvailableDevices()
Returns a list of available optical drives.
static AudioCDBurner * openDevice(int deviceIndex)
Tries to open one of the optical drives.
DiskState getDiskState() const
Returns the current status of the device.
Base class for objects that can produce a continuous stream of audio.
Holds a list of ChangeListeners, and sends messages to them when instructed.
A special array for holding a list of strings.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...