|
sfFDN
|
A chain of audio processors that processes audio sequentially. More...
#include <audio_processor.h>
Public Member Functions | |
| AudioProcessorChain (uint32_t block_size) | |
| Constructs an AudioProcessorChain with a specified block size. | |
| bool | AddProcessor (std::unique_ptr< AudioProcessor > &&processor) |
| Adds an audio processor to the chain. | |
| uint32_t | GetProcessorCount () const |
| Returns the number of processors in the chain. | |
| AudioProcessor * | GetProcessor (uint32_t index) const |
| Returns a pointer to the processor at the specified index. | |
| void | Process (const AudioBuffer &input, AudioBuffer &output) noexcept SFFDN_NONBLOCKING override |
| Processes the audio buffers through the chain. | |
| uint32_t | InputChannelCount () const noexcept SFFDN_NONBLOCKING override |
| Returns the number of input channels this processor expects. | |
| uint32_t | OutputChannelCount () const noexcept SFFDN_NONBLOCKING override |
| Returns the number of output channels this processor produces. | |
| void | Clear () override |
| Clears the internal state of all processors in the chain. | |
| std::unique_ptr< AudioProcessor > | Clone () const override |
| Creates a copy of the audio processor chain. | |
Public Member Functions inherited from sfFDN::AudioProcessor | |
Additional Inherited Members | |
Protected Member Functions inherited from sfFDN::AudioProcessor | |
| AudioProcessor (const AudioProcessor &)=default | |
| AudioProcessor & | operator= (const AudioProcessor &)=default |
| AudioProcessor (AudioProcessor &&) noexcept=default | |
| AudioProcessor & | operator= (AudioProcessor &&) noexcept=default |
A chain of audio processors that processes audio sequentially.
This class allows adding multiple audio processors and processes the audio through each processor in the chain.
| sfFDN::AudioProcessorChain::AudioProcessorChain | ( | uint32_t | block_size | ) |
Constructs an AudioProcessorChain with a specified block size.
| block_size | The size of the audio blocks to process. |
| bool sfFDN::AudioProcessorChain::AddProcessor | ( | std::unique_ptr< AudioProcessor > && | processor | ) |
Adds an audio processor to the chain.
| processor | A unique pointer to the audio processor to add. |
|
overridevirtual |
Clears the internal state of all processors in the chain.
Implements sfFDN::AudioProcessor.
|
overridevirtual |
Creates a copy of the audio processor chain.
Implements sfFDN::AudioProcessor.
| AudioProcessor * sfFDN::AudioProcessorChain::GetProcessor | ( | uint32_t | index | ) | const |
Returns a pointer to the processor at the specified index.
| index | The index of the processor to retrieve. |
| uint32_t sfFDN::AudioProcessorChain::GetProcessorCount | ( | ) | const |
Returns the number of processors in the chain.
|
overridevirtualnoexcept |
Returns the number of input channels this processor expects.
Implements sfFDN::AudioProcessor.
|
overridevirtualnoexcept |
Returns the number of output channels this processor produces.
Implements sfFDN::AudioProcessor.
|
overridevirtualnoexcept |
Processes the audio buffers through the chain.
| input | The input audio buffer. |
| output | The output audio buffer. |
Implements sfFDN::AudioProcessor.