9#include "utils/units.h"
30 std::span<const float * const> input_channels,
31 std::span<float * const> output_channels,
32 units::sample_u32_t num_samples)
noexcept = 0;
47 virtual void error (std::string_view error_message) = 0;
Pure-abstract audio callback interface.
virtual void stopped()=0
Called when the audio device has stopped.
virtual void process_audio(std::span< const float *const > input_channels, std::span< float *const > output_channels, units::sample_u32_t 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 error(std::string_view error_message)=0
Called when an error occurs with the audio device.