Check bluetooth/bluedroid/classic_bt
folder in ESP-IDF examples, which contains the following application:
- This is a A2DP sink client demo. This demo can be discovered and connected by A2DP source device and receive the audio stream from remote device -
bluetooth/bluedroid/classic_bt/a2dp_sink
inc/esp_a2dp_api.inc