A simple audio IO class API. More...
#include <Resonant/AudioLoop.hpp>
Public Member Functions | |
| virtual bool | isRunning () const =0 |
| Check if the audio IO is operational. | |
| virtual std::size_t | outChannels () const =0 |
| Returns the number of output channels in the current setup. | |
| virtual bool | start (int samplerate, int channels)=0 |
| Start the AudioLoop. More... | |
| virtual bool | stop ()=0 |
| Stop the audio processing. | |
A simple audio IO class API.
Implement this to provide different backends for DSPNetwork.
|
pure virtual |
Start the AudioLoop.
In practice this spans a new thread that is managed by the backend.
| samplerate | Desired samplerate, 44100 is safe choice |
| channels | Number of channels to open |
Implemented in Resonant::AudioLoopPortAudio, and Resonant::AudioLoopPulseAudio.