5#include "audio_processor.h"
31 void AddFilter(std::unique_ptr<AudioProcessor> filter);
95 void SetFilter(std::span<const FilterCoefficients> coeffs, uint32_t channel_count);
123 class IIRFilterBankImpl;
124 std::unique_ptr<IIRFilterBankImpl> impl_;
A class representing an audio buffer with multiple channels of non-interleaved audio data.
Definition audio_buffer.h:20
Base class for audio processors.
Definition audio_processor.h:24
Implements a bank of filters.
Definition filterbank.h:19
void Clear() override
Clears the filter bank.
uint32_t OutputChannelCount() const noexcept SFFDN_NONBLOCKING override
Returns the number of output channels produced by this processor.
void AddFilter(std::unique_ptr< AudioProcessor > filter)
Adds a filter to the filter bank.
uint32_t InputChannelCount() const noexcept SFFDN_NONBLOCKING override
Returns the number of input channels supported by this processor.
FilterBank()
Constructs an empty filter bank.
std::unique_ptr< AudioProcessor > Clone() const override
Creates a copy of the filter bank.
void Process(const AudioBuffer &input, AudioBuffer &output) noexcept SFFDN_NONBLOCKING override
Processes a block of input samples through the filter bank.
Implements a bank of IIR filters.
Definition filterbank.h:69
IIRFilterBank & operator=(IIRFilterBank &&other) noexcept
Move assignment operator for the IIR filter bank.
uint32_t InputChannelCount() const noexcept SFFDN_NONBLOCKING override
Returns the number of input channels supported by this processor.
void SetFilter(std::span< const FilterCoefficients > coeffs, uint32_t channel_count)
Sets the biquad coefficients for each stage.
IIRFilterBank()
Constructs an empty IIR filter bank.
IIRFilterBank(IIRFilterBank &&other) noexcept
Move constructor for the IIR filter bank.
void Clear() override
Clears the internal state of the processor.
void Process(const AudioBuffer &input, AudioBuffer &output) noexcept SFFDN_NONBLOCKING override
Processes a block of input samples through the filter bank.
Coefficients for a digital IIR filter.
Definition types.h:257