Audio library, update() function

Status
Not open for further replies.

Sandro

Well-known member
Hi all, in order to create a new audio object with timing function, I need to go a little bit deeper in undestanding update() execution.
I did a test, putting a Serial.print "monitor" inside some audio objects, in order to check when update function is called; the code is executed in a Teensy 4.1, with AUDIO_BLOCK_SAMPLES = 128.
The Serial.print function inside Update() tells me that a single object receive 2 consecutive update() calls in about 2900 microseconds, as expected.
But, I also see that ALL the update() functions are called almost contemporary (within 2-3 microseconds), so apparently interrupting the execution of each of them... Can anyone tell me what I'm missing?
 
Last edited:
Ok, I got it.. I did more accurate tests.. Very simple: update() calls are very close because objects have nothing to do.
 
Status
Not open for further replies.
Back
Top