ESP32 A2DP Source - Callback Function

mgepigon
Posts: 2
Joined: Mon Jan 25, 2021 3:48 am

ESP32 A2DP Source - Callback Function

Postby mgepigon » Tue Feb 02, 2021 2:56 am

How exactly does the callback function for the data work (bt_app_a2d_data_cb)? Where does it get this 'data' from? I'm trying to manually put in an array myself (of a sinusoid) to be played to my Bluetooth speaker but it currently is just outputting noise with no semblance of the PCM sine wave I have the data array as.

I have seen other implementations of SD card audio or .wav file audio being played but not an array of PCM data written from scratch so encountered a bit of a wall here.

Who is online

Users browsing this forum: No registered users and 101 guests