esp-adf
esp-adf copied to clipboard
stop/resume the audio pipeline crash (AUD-3021)
Hi ,
I found if we stop/resume the audio pipeline too fast, ESP32 will crash at audio_pipeline_stop(), I suspect the resume() is not completely ready and call stop() will crash.
- audio_pipeline_stop()
- audio_pipeline_wait_for_stop()
- audio_pipeline_resume()
- Go to 1.
Please help.
Thank you
Hi @iloop2020
I don’t recommend that you use it in this order.
Generally, we use pipeline start and stop in pairs, pipeline pause and resume as the same way.
When you are already stop a pipeline then continue to resume the pipeline, maybe got an issue.
Hi @HengYongChao
Thank you for your support, it is good to know more in detail.
- Can you list out the API pairs that should be called?
- What is different between audio_pipeline_terminate() and audio_pipeline_stop() ?
Thank you.
Hi @HengYongChao
The document shows the stop() can be use with resume(), please check.
Thank you
Hi @iloop2020
Sorry, I thought you were using the audio_pipeline_terminate
function, resume is more like restart sometime.
In the above case, you can surely use resume.
Please post the crash log here.
Hi @HengYongChao
Can you share the API call flow/produce, to switch between Bluetooth A2DP and SDCard MP3 file playback. ?
Thank you
Hi @HengYongChao
- What is the different between audio_pipeline_pause() and audio_pipeline_stop() ?
- And the relation between audio_pipeline_start() and audio_pipeline_resume() ?
Thank you
This topic has become inactive so I'm going to close the issue. Please reopen this if you have any questions or need any further assistance.