#include #include "jack.h" int taJACKonSampleRate(jack_nframes_t rate, void* inst) { TAAudioJACK* in=(TAAudioJACK*)inst; in->onSampleRate(rate); return 0; } int taJACKonBufferSize(jack_nframes_t bufsize, void* inst) { TAAudioJACK* in=(TAAudioJACK*)inst; in->onBufferSize(bufsize); return 0; } int taJACKProcess(jack_nframes_t nframes, void* inst) { TAAudioJACK* in=(TAAudioJACK*)inst; in->onProcess(nframes); return 0; } void TAAudioJACK::onSampleRate(jack_nframes_t rate) { if (sampleRateChanged!=NULL) { sampleRateChanged(SampleRateChangeEvent(rate)); } } void TAAudioJACK::onBufferSize(jack_nframes_t bufsize) { if (bufferSizeChanged!=NULL) { bufferSizeChanged(BufferSizeChangeEvent(bufsize)); } } void TAAudioJACK::onProcess(jack_nframes_t nframes) { if (audioProcCallback!=NULL) { audioProcCallback(audioProcCallbackUser,inBufs,outBufs,desc.inChans,desc.outChans,desc.bufsize); } for (int i=0; i0) { inBufs=new float*[desc.inChans]; iInBufs=new float*[desc.inChans]; ai=new jack_port_t*[desc.inChans]; for (int i=0; i0) { outBufs=new float*[desc.outChans]; iOutBufs=new float*[desc.outChans]; ao=new jack_port_t*[desc.outChans]; for (int i=0; i