119 virtual void audioDeviceError (
const String& errorMessage);
292 virtual bool hasControlPanel()
const;
298 virtual bool showControlPanel();
Holds a resizable array of primitive or copy-by-value objects.
One of these is passed to an AudioIODevice object to stream the audio data in and out.
virtual void audioDeviceIOCallback(const float **inputChannelData, int numInputChannels, float **outputChannelData, int numOutputChannels, int numSamples)=0
Processes a block of incoming and outgoing audio data.
virtual ~AudioIODeviceCallback()=default
Destructor.
virtual void audioDeviceAboutToStart(AudioIODevice *device)=0
Called to indicate that the device is about to start calling back.
virtual void audioDeviceStopped()=0
Called to indicate that the device has stopped.
Base class for an audio device with synchronised input and output channels.
virtual double getCurrentSampleRate()=0
Returns the sample rate that the device is currently using.
virtual int getCurrentBitDepth()=0
Returns the device's current physical bit-depth.
virtual void close()=0
Closes and releases the device if it's open.
virtual bool isPlaying()=0
Returns true if the device is still calling back.
const String & getTypeName() const noexcept
Returns the type of the device.
virtual StringArray getOutputChannelNames()=0
Returns the names of all the available output channels on this device.
virtual StringArray getInputChannelNames()=0
Returns the names of all the available input channels on this device.
virtual Array< int > getAvailableBufferSizes()=0
Returns the set of buffer sizes that are available.
virtual BigInteger getActiveInputChannels() const =0
Returns a mask showing which of the available input channels are currently enabled.
virtual void stop()=0
Stops the device playing.
virtual BigInteger getActiveOutputChannels() const =0
Returns a mask showing which of the available output channels are currently enabled.
virtual Array< double > getAvailableSampleRates()=0
Returns the set of sample-rates this device supports.
virtual int getInputLatencyInSamples()=0
Returns the device's input latency.
virtual int getCurrentBufferSizeSamples()=0
Returns the buffer size that the device is currently using.
const String & getName() const noexcept
Returns the device's name, (as set in the constructor).
virtual int getDefaultBufferSize()=0
Returns the default buffer-size to use.
virtual void start(AudioIODeviceCallback *callback)=0
Starts the device actually playing.
virtual String getLastError()=0
Returns the last error that happened if anything went wrong.
virtual String open(const BigInteger &inputChannels, const BigInteger &outputChannels, double sampleRate, int bufferSizeSamples)=0
Tries to open the device ready to play.
virtual int getOutputLatencyInSamples()=0
Returns the device's output latency.
virtual bool isOpen()=0
Returns true if the device is still open.
An arbitrarily large integer class.
A special array for holding a list of strings.
#define JUCE_API
This macro is added to all JUCE public class declarations.