Search found 6 matches
- Tue Aug 06, 2024 1:11 pm
- Forum: ESP-ADF
- Topic: Change audio_pipeline elements during runtime
- Replies: 3
- Views: 6473
Re: Change audio_pipeline elements during runtime
There still existed an issue when switching pipelines between BT and WiFi. Due to periph_bt_pause() returning before the queue was emptied, and the audio pipeline pausing immediately which in-turn stops the queue from getting emptied. So inserting a small delay after periph_bt_pause() and before pau...
- Mon Jun 03, 2024 1:10 pm
- Forum: ESP-ADF
- Topic: Change audio_pipeline elements during runtime
- Replies: 3
- Views: 6473
Re: Change audio_pipeline elements during runtime
Fixed the issue without freeing and re-initialising the pipeline. Just had to set the event listener interface again, made it global so I could use it in the callback. Here is the code if anyone needs it in the future: ... } else if (cx_handle->work_mode == BT_MODE) { ESP_LOGI(TAG, "[ * ] Enter WIFI...
- Thu May 30, 2024 1:32 pm
- Forum: ESP-ADF
- Topic: Change audio_pipeline elements during runtime
- Replies: 3
- Views: 6473
Re: Change audio_pipeline elements during runtime
I solved the crash issue by using audio_pipeline_relink() instead of audio_pipelink_link(). Here is exact APIs call sequence I am using: ... else if (cx_handle->work_mode == BT_MODE) { ESP_LOGI(TAG, "[ * ] Enter WIFI mode"); cx_handle->work_mode = WIFI_MODE; ... periph_bt_pause(cx_handle->bt_periph)...
- Wed May 29, 2024 10:40 am
- Forum: ESP-IDF
- Topic: Can't compile BLE
- Replies: 6
- Views: 1307
Re: Can't compile BLE
In the code have you included the required bt/ble header files?
- Wed May 29, 2024 10:23 am
- Forum: ESP-ADF
- Topic: Change audio_pipeline elements during runtime
- Replies: 3
- Views: 6473
Change audio_pipeline elements during runtime
I am developing a project based on the wifi_bt_ble_coex example using the LyraTD-MSC-v2.2 audio board. Our application requires the ESP32 device to switch between WiFi streaming and BT streaming. We removed the hfp stream part since we don't need it, and we replaced esp_audio APIs with audio_pipelin...
- Wed May 29, 2024 7:19 am
- Forum: ESP-ADF
- Topic: Pipeline restart
- Replies: 1
- Views: 5146
Re: Pipeline restart
Try adding these function calls before your audio_pipeline_run()
Code: Select all
audio_pipeline_reset_ringbuffer(pipeline);
audio_pipeline_reset_elements(pipeline);