Open joeybab3 opened 7 years ago
Thanks for the report, I'll look into it as soon as I find the time.
I got the same error after pkt count 700 printed, and have to reset the esp32 to get bluetooth works again.
Adding log to memory that I got this:
E (14625) BT: BTA_AV_START_EVT status 0, suspending 0, init 0
I (14635) BT_APP_CORE: bt_app_task_handler, sig 0x1, 0x1␛[0m
I (14635) BT_AV: a2dp audio_state_cb state 2␛[0m
I (16795) BT_AV: RAM left: 121092␛[0m
E (16795) BT_AV: audio data pkt cnt 100␛[0m
I (18975) BT_AV: RAM left: 114172␛[0m
E (18975) BT_AV: audio data pkt cnt 200␛[0m
I (21155) BT_AV: RAM left: 106804␛[0m
E (21155) BT_AV: audio data pkt cnt 300␛[0m
I (23335) BT_AV: RAM left: 98008␛[0m
E (23335) BT_AV: audio data pkt cnt 400␛[0m
I (25515) BT_AV: RAM left: 90316␛[0m
E (25515) BT_AV: audio data pkt cnt 500␛[0m
I (27695) BT_AV: RAM left: 81732␛[0m
E (27695) BT_AV: audio data pkt cnt 600␛[0m
I (29885) BT_AV: RAM left: 118484␛[0m
E (29885) BT_AV: audio data pkt cnt 700␛[0m
Maybe memory related?
This issue only happens pkt cnt 700+. Pause and play would clear the counter.
I also found that PDM with webradio will stop play after relative long of time, about half hour or more. The esp32 wont load any mp3 file. It works again after push the reset button. Bluetooth with DAC seems works great.
After getting it to work(note: cmd is not gnd...), I was playing around with it and I can't get it to play over bluetooth when the audio mode is set to pdm. It gives the error below:
and just sounds like it repeats the same sample over and over. It doesn't have this issue when streaming over wifi.