Forum Rule: Always post complete source code & details to reproduce any issue!
-
Senior Member
Audio library, update() function
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 by Sandro; 10-28-2020 at 12:22 AM.
-
Senior Member
Ok, I got it.. I did more accurate tests.. Very simple: update() calls are very close because objects have nothing to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules