MP3_DECODER: reduce buffer size
Posted: Fri Aug 20, 2021 4:00 pm
There's a way to reduce the decoder buffer size? At any try I always get that 27796 bytes are needed.
Now I'm trying to modify that config vars but without success.
I'm using the pipeline_bt_source (https://github.com/espressif/esp-adf/tr ... _bt_source) on a ESP_devkit_v4 (ESP32-WROOM-32U), any idea on ho to get it work?
Thanks
Code: Select all
MP3_DECODER: Allocate decoder buffer failed. bytes 27796,
Code: Select all
#define MY_MP3_DECODER_TASK_STACK_SIZE (5 * 1024)
#define MY_MP3_DECODER_TASK_CORE (0)
#define MY_MP3_DECODER_TASK_PRIO (5)
#define MY_MP3_DECODER_RINGBUFFER_SIZE (2 * 1024)
#define MP3_DECODER_CONFIG() { \
.out_rb_size = MP3_DECODER_RINGBUFFER_SIZE, \
.task_stack = MY_MP3_DECODER_TASK_STACK_SIZE, \
.task_core = MP3_DECODER_TASK_CORE, \
.task_prio = MP3_DECODER_TASK_PRIO, \
.stack_in_ext = true, \
}
Thanks