Sync Audio Library / Audiostream output


Well-known member
I am trying to sync the output of the teensy with audio library and I2S Audio output to an external trigger (coming from MIDI Start command), from an external device.
My finding is that the output delay at start is more or less random, which i assume is caused by the 3ms buffer of Audiostream for processing the 128samples and since i don't know at what point the output currently is, the delay is longer or shorter.
I could be very wrong about that assumption but currently that is my best explaination.

My question: Is there a way to "reset" the Audiostream to "0" or a way to get the current value where it is - so i could calculate an offset to get a more consistent start event - delay ?