Replies: 11 comments 1 reply
-
I am not sure if this will really help with the quality but it should be pretty easy to implement by creating a subclass of BluetoothA2DPSink and overwriting the methods that allocate and release the ringbuffer.
Before calling start just use the set_i2s_ringbuffer_size() to define the Ringbuffer size.. |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann Thank you. It's a shame I was too much noob to implement it myself, could you please help me how to use it with "bt_music_receiver_32bit_ext" example code? |
Beta Was this translation helpful? Give feedback.
-
This is a regular method on the object, so it's a2dp_sink. set_i2s_ringbuffer_size(4096); |
Beta Was this translation helpful? Give feedback.
-
@pschatzmann Thank you very much for help! |
Beta Was this translation helpful? Give feedback.
-
Did you use something like the following: |
Beta Was this translation helpful? Give feedback.
-
I see what you mean, no, i only used default line of code
|
Beta Was this translation helpful? Give feedback.
-
I suggest that you forget about BluetoothA2DPSink32. This is rather exotic and usually not needed. Just replace ps. I dont really see any advantage of a2dp_sink.set_bits_per_sample(32); unless you have a dac which only supports 32 bits. Usually 16 would be my recommended setting and the value that a2dp is providing... |
Beta Was this translation helpful? Give feedback.
-
I tried |
Beta Was this translation helpful? Give feedback.
-
Tried this simpler variant without 32-bits. At first it seems like it work better but after flashing OLD/NEW code back and forth it seems almost the same in case of audio drops. To be sure I will try to test this receiver with this new code in more controlled area outside, maybe it will act different. As for delay I did not noticed any additional delay with 4MB PSRAM buffer enabled.
|
Beta Was this translation helpful? Give feedback.
-
im not sure if this is related to your audio drops, it was for mine... when sending in lots of avrcp volume messages |
Beta Was this translation helpful? Give feedback.
-
for his case? not sure... but as per the changes Espressif suggested max-10 |
Beta Was this translation helpful? Give feedback.
-
I have this idea for a long time. I was using ESP32-WROVER-B & ESP32-WROVER-IB modules for all of my projects and this module features an additional 8 MB SPI Pseudo static RAM (PSRAM).
Can you please add ability to enable use of this PSRAM in code so it will be used as a buffer?
When i use ESP32-A2DP and have bad signal or I walk in other from this ESP32 receiver room sound starts chopping and loosing parts of the audio, would be cool to actually use big potential of this chip with PSRAM.
Do you think it's possible? Is it hard to add this option?
Here some example photos of the module and also Datasheet link
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions