Replies: 1 comment 2 replies
-
I encountered this recently too, it appears to be an oversight. Feel free to open an issue |
Beta Was this translation helpful? Give feedback.
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.
-
I have some code that records sound from an I2S microphone and looks like this:
It then it pop data in a loop, it works great.
But now I want to stop my recording, and restart it later. I can't drop the transfer and create a new one, as it took ownership of i2s_rx. The same issue boils upwards as every step takes ownership of something else and nothing is just disposable.
I guess I could just let it run and ignore it, I not sure what pop does when it returns DmaError::Late, does it clean the buffer?
Anyways that solution wouldn't be desirable as this is a battery powered device and I would like both the mcu and the microphone to sleep and stop all I2S communication when I'm not recording.
After reading the docs I cant find what I'm missing.
Thanks in advance, and congratulations on this great protect!
Beta Was this translation helpful? Give feedback.
All reactions