Closed odisei369 closed 2 years ago
Since I do not have anything specific to Arduino in my code the issue must be either
Thank you for your response. It helped a lot. Didn't know about version Arduino is based on.
Then I think that's the issue with IDF version.
Because according to this issue https://github.com/espressif/esp-idf/issues/6470 it was broken somewhere in 3.3.0 version of esp-idf and was not fixed yet.
It's not the above issue. I've bisect this to a more recent change that broke the internal DAC: https://github.com/espressif/esp-idf/issues/8344
Issue 6470 was a problem with no audio. It later got fixed some where in the midst of code refactors since v4.1
. The current issue with the internal DAC is it produces audio but it's all garbled.
The Internal DAC has been fixed in the latest IDF release
Hi.
First of all thank you for the library. It has very nice API and is really easy to use.
I've tried to use it both as Arduino IDE library and as Expressive IDF component. And the thing is it works ok as Arduino IDE library, but has wrong sound when used as Expressive IDF component (it's like making this sound higher so you could not even understand words. Maybe I should record it?).
I've tried to play with this code https://github.com/pschatzmann/ESP32-A2DP/blob/74951f6175510ea0a771eaeaefd6a6f0a99e192a/src/BluetoothA2DPSink.cpp#L900-L909 because my guess is that issue is related to different data format between I2C and internal DAC, but no luck. I don't have osciloscope so it's hard for me to debug it.
I've went through esp-idf issues, but didn't found exact match with my issue. There are some possibly related issues, like this https://github.com/espressif/esp-idf/issues/6470
My test environment:
Board: ESP32-DevKitC V4 esp-idf: tried both v5.0 and v4.4
The code for Arduino IDE:
The code for Expressive IDF:
I would like to fix this behaviour and create pull request, but need help with direction where should I dig to fix it.