kd5rxt-mark
Well-known member
I'm guessing that this may simply be a case where the website is out-of-date, so I did not really want to post it in the "bugs" section of the forum.
The "Audio Library Processor Usage & Interrupts" webpage (https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html) indicates that the AudioProcessorUsage() & AudioProcessorUsageMax() functions each return integers from 0 to 100. However simply printing the return value (on a T4) to the serial port appears to indicate that the return type is a float.
Mark J Culross
KD5RXT
The "Audio Library Processor Usage & Interrupts" webpage (https://www.pjrc.com/teensy/td_libs_AudioProcessorUsage.html) indicates that the AudioProcessorUsage() & AudioProcessorUsageMax() functions each return integers from 0 to 100. However simply printing the return value (on a T4) to the serial port appears to indicate that the return type is a float.
Code:
Representative code:
Serial.print("Current audio processor usage = ");
Serial.println(AudioProcessorUsage());
Serial.print("Max audio processor usage = ");
Serial.println(AudioProcessorUsageMax());
Resulting output to serial monitor:
Current audio processor usage = 49.76
Max audio processor usage = 51.48
Mark J Culross
KD5RXT