Thank you so much for showing me this method!
I'm currently experimenting with this callbackmethod and I got it to work somewhat.
I'm using this library for the fft
https://github.com/fakufaku/esp32-fft
(blogpost:
http://www.robinscheibler.org/2017/12/12/esp32-fft.html)
But you are using this
function .
Is that some native library function or just a placeholder for where I should use my implementation.
Also im experiencing the issue, that when applying this callbackfunction to a pipeline it
only seems to work with the last element of the pipeline like referenced in the documentation .
This API allows the application to set a write callback for the last audio_element in the pipeline
but then this element (in my case a
Code: Select all
i2s_stream_writer = i2s_stream_init(&i2s_cfg);
)
does not forward the sound to the heatphonejack anymore.
Maybe you know something about that otherwise I will investigate this further myself.
In any case I will experiment more with this as I find time to do so and I hope I can
come back and ask you for help if I have problems I can't crack myself.