How do I auto clear i2s circular buffer in callbacks? #3512
Unanswered
AstrickHarren
asked this question in
Q&A
Replies: 2 comments 1 reply
-
The current implementation expects you to fill the buffer early enough to avoid an underrun - in your case the user code is expected to clear the buffer - in any case currently not handling the situation (i.e. not refilling the buffer) will result in an error returned by the implementation |
Beta Was this translation helpful? Give feedback.
0 replies
-
how do I clear buffer if I don't have a way to get notified? (like a callback) Or maybe I didn't find a way |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I could be wrong but I think esp-idf supports
auto_clear_after_cb
which prevents repeating audio when data are unavailable for now. I'm writing an UDP music streamer and I want to stop playing (sending zero to i2s) instead of every time when there is a network instability i2s sends data in the circular buffer and effectively repeats last 100ms or so. What should I do in this case?Beta Was this translation helpful? Give feedback.
All reactions