pschatzmann / ESP32-A2DP

A Simple ESP32 Bluetooth A2DP Library (to implement a Music Receiver or Sender) that supports Arduino, PlatformIO and Espressif IDF
Apache License 2.0
1.55k stars 261 forks source link

AVRC volume control issues #529

Closed ghost closed 3 months ago

ghost commented 4 months ago

Problem Description

Hello. Play/Pause/Prev/Prev/Next are working fine, with set_volume and get_volume there are problems - volume down and volume up doesn't sync with Windows and Android devices, while syncing with my iPhone 13.

Also, I already found this page: https://github.com/pschatzmann/ESP32-A2DP/wiki/Controlling-your-Phone-with-AVRC-Commands and did add the development url. I can't tell if I didn't notice it right away, or if it really had an impact, but it's like.... This fixed the situation with Windows 11 for about 10 seconds after connecting the device. Then Windows starts ignoring volume control again. Which kinda working still (like in in release 1.0.6 as you mentioned on the link above) , but the slider in the system is not synchronized with the device.

Device Description

ESP32-WROOM CH340C iPhone 13 mini Huawei P Smart Z Windows 11 23H2 PC

Sketch

int curVol = a2dp_sink.get_volume();
a2dp_sink.set_volume(curVol+8);

Other Steps to Reproduce

I am using Arduino core for esp32 by Espressif Systems v2.0.11, since it gives me compilation error with 3.0.0 alpha-3

Compilation error: 'i2s_config_t' does not name a type; did you mean 'wifi_config_t'?

Provide your Version of the EP32 Arduino Core (or the IDF Version)

2.0.11

I have checked existing issues, discussions and online documentation

ghost commented 3 months ago

Okay, apparently the problem has been solved.

It seems that on Windows 11 it conflicted with my G435 headphones, after turning them off everything seems to work.

Also, the slider is synchronized with volume on the Galaxy S21, so I conclude that it's about that old phone. Yeah, the phone released in 2019 is already too old.