|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Pure-abstract audio callback interface. More...
#include <src/dsp/iaudio_callback.h>

Public Member Functions | |
| virtual void | process_audio (const float *const *input_channel_data, int num_input_channels, float *const *output_channel_data, int num_output_channels, int num_samples) noexcept=0 |
| Called when the audio device wants to process a block of audio data. | |
| virtual void | about_to_start ()=0 |
| Called when the audio device is about to start processing. | |
| virtual void | stopped ()=0 |
| Called when the audio device has stopped. | |
| virtual void | error (std::string_view error_message)=0 |
| Called when an error occurs with the audio device. | |
Pure-abstract audio callback interface.
Decouples the audio engine from any specific audio backend (e.g., JUCE). Implementations receive audio I/O callbacks from the hardware audio interface.
Definition at line 18 of file iaudio_callback.h.
|
pure virtual |
Called when the audio device is about to start processing.
Implemented in zrythm::dsp::AudioCallback.
|
pure virtual |
Called when an error occurs with the audio device.
Implemented in zrythm::dsp::AudioCallback.
|
pure virtualnoexcept |
Called when the audio device wants to process a block of audio data.
| input_channel_data | Array of pointers to input channel data |
| num_input_channels | Number of input channels |
| output_channel_data | Array of pointers to output channel data |
| num_output_channels | Number of output channels |
| num_samples | Number of samples in this block |
Implemented in zrythm::dsp::AudioCallback.
|
pure virtual |
Called when the audio device has stopped.
Implemented in zrythm::dsp::AudioCallback.