int main(){ win1.create(Window::Dim(800, 600), "Allocore Example: MsgTube"); audio.append(win1); audio.start(); MainLoop::start(); return 0; }
static int AudioIO_portaudioCallback( const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData) { AudioIO *audioIO = (AudioIO *)userData; return audioIO->audioCallback((float *) inputBuffer, (float *) outputBuffer, framesPerBuffer); }
inline void VCR::start(AudioIO * io) { if (mAudio == 0) { mImageCount = 0; mImageFrame = 0; mAudio = io; mAudio->append(*this); } }
void Decorrelation::configureDeterministic(AudioIO &io, long seed, float deltaFreq, float deltaFreqDev, float maxTau, float startPhase, float phaseDev) { generateDeterministicIRs(seed, deltaFreq, deltaFreqDev, maxTau, startPhase, phaseDev); if (mSize >= 64) { int options = 2; //vector mode mConv.configure(io, mIRs, mSize, mInChannel, mInputsAreBuses, vector<int>(), io.framesPerBuffer(), options); } }
inline void VCR::stop() { if (mAudio) { mAudio->remove(*this); mAudio = 0; } }