-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ringbuf_pop always returns false #4
Comments
Maybe I hit something like this raspberrypi/pico-sdk#971? |
Printing some random stuff already fixes the issue, it does not have to involve |
I hacked my way around it by adding a |
Hi @biemster , This library is no longer updated, the efforts have been moved to the I2S library of the arduino-pico project: So I'd strongly recommend to use that as your starting point. Alternatively, you may want to have a look at the original MicroPython code to see if there's any update there: Good luck! |
Thanks @giampiero7 for your answer. I started of from the arduino-pico I2s library, but got stuck: https://github.com/biemster/pico-I2S, probably at the ping-pong DMA stuff (not my forte). I looked at the original MicroPython code as well indeed, but I don't see any relevant changes in that area, so that might have the bug as well.. |
This one's a doozy.
I use your (great!)
machine_i2s.c
with the C-SDK like this:but I don't get any samples out without the most peculiar change:
if I add on https://github.com/sfera-labs/arduino-pico-i2s-audio/blob/master/src/machine_i2s.c#L232 the following:
it suddenly starts spewing out correct frames! So it seems to me that the
printf
statement somehow materializes thehead
andtail
values, but my knowledge of the pico and or C is not nearly enough to start to understand this.The text was updated successfully, but these errors were encountered: