CorBee
Well-known member
Hi
As we are developing the TeensyBat (https://forum.pjrc.com/threads/38988-Bat-detector/page36) with further enhancements I would like to keep track of
the AudioprocessorUsage(). This is directly available from the Audiostream library see https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html
I have tested this on a T36 and got readouts that are at 0.5 whilst the above html states :
Returns an estimate of the total CPU time used during the most recent audio library update. The number is an integer from 0 to 100, representing an estimate of the percentage of the total CPU time consumed.
The library declares this also as a float so 0.5 could for instance mean 50% of 0-1 but ...
The odd thing is that when I test alike code on a T41 the same setup gives values around 3.2 ...
I have seen (@FrankB) some people mentioning that this calculation is dependent also on the samplerates. As we are using a lot higher samplerates than the defaults (we go up to 384k without problems) I was wondering how I can calculate a reliable estimate.
kind regards
Cor
As we are developing the TeensyBat (https://forum.pjrc.com/threads/38988-Bat-detector/page36) with further enhancements I would like to keep track of
the AudioprocessorUsage(). This is directly available from the Audiostream library see https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html
I have tested this on a T36 and got readouts that are at 0.5 whilst the above html states :
Returns an estimate of the total CPU time used during the most recent audio library update. The number is an integer from 0 to 100, representing an estimate of the percentage of the total CPU time consumed.
The library declares this also as a float so 0.5 could for instance mean 50% of 0-1 but ...
The odd thing is that when I test alike code on a T41 the same setup gives values around 3.2 ...
I have seen (@FrankB) some people mentioning that this calculation is dependent also on the samplerates. As we are using a lot higher samplerates than the defaults (we go up to 384k without problems) I was wondering how I can calculate a reliable estimate.
kind regards
Cor