Repository navigation
Replies: 1 comment 2 replies
|
Sample loss usually means the readCB isn't draining the buffer fast enough or the host's audio pull rate differs. Try increasing the TinyUSB audio buffer size (AUDIO_BUFFER_SAMPLES) or optimizing the callback to copy samples faster. Also verify sample format (mono/stereo, bits) matches both sides. If the host clock drifts slightly, enabling feedback endpoint (freq adjustment) can help. Check that your SYSTICK calibration isn't interfering with interrupt timing. Good luck! |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
After calibrating the RP2040 onboard 1 MHz clock used by
systick, I can precisely count (±5 ppm) how many samples have been produced byreadCB()typical Arduino Serial print out:
And a manual count of samples in the recorded
wavshows coherent discontinuities in the produced sin wave and a shorter period.Host computer:
All reactions