AudioGraphResampler class.
More...
#include <AudioGraphResampler.hpp>
AudioGraphResampler class.
This class is responsible for providing a constant sample rate and buffer size for the audio graph.
◆ ProcessCallback
Callback function type for processing audio data.
- Parameters
-
| inAudioBuses | The input audio buses. |
| outAudioBuses | The output audio buses. |
- Returns
- True if the processing was successful, false otherwise.
◆ AudioGraphResampler()
| switchboard::AudioGraphResampler::AudioGraphResampler |
( |
int | sampleRate, |
|
|
int | bufferSize ) |
Constructor for AudioGraphResampler.
- Parameters
-
| sampleRate | The fixed processing sample rate to be used in the callback. |
| bufferSize | The fixed processing buffer size to be used in the callback. |
◆ process()
Processes the audio data.
- Parameters
-
| inAudioBuses | The input audio buses. |
| outAudioBuses | The output audio buses. |
- Returns
- True if the processing was successful, false otherwise.
◆ setNumberOfBuses()
| bool switchboard::AudioGraphResampler::setNumberOfBuses |
( |
const uint | numberOfInputBuses, |
|
|
const uint | numberOfOutputBuses ) |
Sets the number of input and output buses.
- Parameters
-
| numberOfInputBuses | The number of input buses. |
| numberOfOutputBuses | The number of output buses. |
- Returns
- True if the operation was successful, false otherwise.
◆ setProcessCallback()
| void switchboard::AudioGraphResampler::setProcessCallback |
( |
ProcessCallback | callback | ) |
|
Sets the process callback function.
- Parameters
-
| callback | The process callback function. |
The documentation for this class was generated from the following file: