This is fft calcuate function for audio stream. please copy esp-dsp to esp-adf and add this patch, you can use it.
-
I2s stream -> fft music-> fft data -> led matrix(ws2812 8x16) -> RMT send
-
Reference:
- gitclone -b release/v2.4 --recursive https://github.com/espressif/esp-adf.git>
- cd esp-adf
- git clone -b release/v4.4 --recursive https://github.com/espressif/esp-idf.git
- ./insall.sh
- . ./export.sh
- cd esp-adf
- git clone https://github.com/espressif/esp-dsp.git
- copy esp32-fft-music to esp-adf/componemts directory
- cp -af esp-adf/components/audio_stream/* $ADF_PATH/components/audio_stream/
- fft_periph_init(set);
** you can use update_esp.sh script to auto install libraries **