What is the difference between LINE_IN and ENCODE/DECODE codec modes and how to play sound from AUX
Posted: Mon Jun 07, 2021 10:42 am
I'm trying to send audio from i2s (AUX in) to bluetooth headphones. I made a pipeline i2s->bt, But if i type
or , i hear sound from microphones, but not from AUX_IN. But when I type i hear no sound at all. Moreover, it works with wire headphones(https://github.com/espressif/esp-adf/tr ... e_passthru), but doesn't for wireless. What am i doing wrong?
Full code: https://pastebin.com/AEmCqPuT
Thank you!
Code: Select all
audio_hal_ctrl_codec(board_handle->audio_hal, AUDIO_HAL_CODEC_MODE_DECODE, AUDIO_HAL_CTRL_START);
Code: Select all
AUDIO_HAL_CODEC_MODE_ENCODE
Code: Select all
AUDIO_HAL_CODEC_MODE_LINE_IN
Full code: https://pastebin.com/AEmCqPuT
Thank you!