That worked perfectly. Thank you!!!! I am loving the Teensy with Audio shield and the audio library. It makes it so quick and easy to get something working.
If you don't mind, can I ask another question about this project? The structure is that there is a guitar input which goes through two effects inserts, with a synthesizer engine also being added to the mix when one of the effects calls for it.

The handler function is as follows (effect1InLeft and effect2InLeft are record queues while effect1OutLeft and effect2OutLeft are playback queues):
Code:
void processAudio(Effect effect1, Effect effect2) {
if (effect1InLeft.available() >= 1) {
int16_t *audioBuffer = effect1OutLeft.getBuffer();
memcpy(audioBuffer, effect1InLeft.readBuffer(), 256);
effect1InLeft.freeBuffer();
effect1.processEffect(audioBuffer);
effect1OutLeft.playBuffer();
}
if (effect2InLeft.available() >= 1) {
int16_t *audioBuffer = effect2OutLeft.getBuffer();
memcpy(audioBuffer, effect2InLeft.readBuffer(), 256);
effect2InLeft.freeBuffer();
effect2.processEffect(audioBuffer);
effect2OutLeft.playBuffer();
}
}
So if the buffer is the default 128 for the record and playback queues, how does latency work with multiple queues like this? The 128 sample buffer adds about 3ms of latency, right? How is latency effected by running two of these record/playback pairs in series?
Thanks again,
-Kenji