Initialize the bluetooth A2DP source module. A2DP can work independently. If you want to use AVRC together, you should initiate AVRC first. This function should be called after esp_bluedroid_enable() completes successfully, and ESP_A2D_PROF_STATE_EVT with ESP_A2D_INIT_SUCCESS will reported to the APP layer. Note: A2DP can work independently. If you want to use AVRC together, you should initiate AVRC first.
- ESP_OK: if the initialization request is sent to lower layer successfully - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - ESP_FAIL: others
Examples
esp_a2d_source_init() is referenced by 1 libraries and example projects: