27 [[maybe_unused]]
int numInputChannels,
28 [[maybe_unused]]
float*
const* outputChannelData,
29 [[maybe_unused]]
int numOutputChannels,
30 [[maybe_unused]]
int numSamples,
35 : name (deviceName), typeName (deviceTypeName)
virtual void audioDeviceIOCallbackWithContext(const float *const *inputChannelData, int numInputChannels, float *const *outputChannelData, int numOutputChannels, int numSamples, const AudioIODeviceCallbackContext &context)
Processes a block of incoming and outgoing audio data.
virtual void audioDeviceError(const String &errorMessage)
This can be overridden to be told if the device generates an error while operating.
virtual bool hasControlPanel() const
True if this device can show a pop-up control panel for editing its settings.
AudioIODevice(const String &deviceName, const String &typeName)
Creates a device, setting its name and type member variables.
virtual int getXRunCount() const noexcept
Returns the number of under- or over runs reported by the OS since playback/recording has started.
virtual bool showControlPanel()
Shows a device-specific control panel if there is one.
virtual ~AudioIODevice()
Destructor.
virtual bool setAudioPreprocessingEnabled(bool shouldBeEnabled)
On devices which support it, this allows automatic gain control or other mic processing to be disable...
Additional information that may be passed to the AudioIODeviceCallback.