An example of how to use the Async::AudioFsf class
#include <iostream>
#include <cstring>
#include <cstdlib>
int main(int argc, const char **argv)
{
const size_t N = 128;
float coeff[N/2+1];
std::memset(coeff, 0, sizeof(coeff));
coeff[6] = 0.39811024;
coeff[7] = 1.0;
coeff[8] = 1.0;
coeff[9] = 1.0;
coeff[10] = 0.39811024;
prev_src = &fsf;
prev_src = 0;
{
std::cout << "*** ERROR: Could not open audio device" << std::endl;
exit(1);
}
return 0;
}
A Frequency Sampling Filter implementation.
Contains a class for handling audio input/output to an audio device.
The core class for writing asyncronous cpp applications.
A Frequency Sampling Filter implementation.
A class for handling audio input/output to an audio device.
bool open(Mode mode)
Open the audio device in the specified mode.
@ MODE_RDWR
Both read and write.
static void setSampleRate(int rate)
Set the sample rate used when doing future opens.
The base class for an audio source.
bool registerSink(AudioSink *sink, bool managed=false)
Register an audio sink to provide samples to.
An application class for writing non GUI applications.
void exec(void)
Execute the application main loop.