hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
4.98k stars 1.05k forks source link

Cannot get Audio to write out at full data sample rate #635

Closed ndinsmore closed 3 years ago

ndinsmore commented 3 years ago

Set up [Mandatory] Provide details of your setup help us to reproduce the issue as quick as possible

Describe the bug On the pico the callback to fill the transfer buffer are only getting called 200-500 times a second, if I try to up the data size the callback frequency goes down. When sending data what controls the callback frequency?

PanRe commented 3 years ago

Every time the host collected or sent data an interrupt triggers a callback function within the audio driver in which a new transmit for receive or transmit is scheduled.

There is a new design for the audio driver on its rollout, completely redesigning how data is copied. However, i can not say when the PR is finished.

ndinsmore commented 3 years ago

This issue was a bug caused by the pico dcd fifo implementation, and a buffer overrun. It can now be closed.