arduino-audio-tools icon indicating copy to clipboard operation
arduino-audio-tools copied to clipboard

Read A2dp volume problem

Open luke2023 opened this issue 3 years ago • 8 comments

Hello,Thank you for your Library! I am now having a problem of reading the volume of the a2dp player Code: void setup (){ ⋯⋯ player.setVolume(1); } void loop(){ player.copy(); Serial.println(player.volume()); } Out put: ovf ovf ovf⋯⋯⋯⋯ And I tested again: Out: 0.00 0.00 I don't understand what's wrong . Thank you LinChe

luke2023 avatar Aug 08 '22 06:08 luke2023

For the time being (until this is fixed), try to call e.g. player.setVolume(0.6); in the setup, this should avoid the problem.

pschatzmann avatar Aug 08 '22 07:08 pschatzmann

@pschatzmann thank you so much for the work!I found another problem is that if I set it to 0.05 in setup, I can't use my earphones to set it very loud ,max is around 0.2,Thank You!

luke2023 avatar Aug 08 '22 08:08 luke2023

Going to make a open source watch with Bluetooth player!image

luke2023 avatar Aug 08 '22 09:08 luke2023

I suggest that you share your project here https://github.com/pschatzmann/arduino-audio-tools/discussions/categories/show-and-tell

pschatzmann avatar Aug 08 '22 09:08 pschatzmann

@pschatzmann Thank you for your suggestions! Although I set it to 0.6 it still returns 'ovf' thanks! LinChe

luke2023 avatar Aug 08 '22 09:08 luke2023

@pschatzmann Ok

luke2023 avatar Aug 08 '22 10:08 luke2023

the player.volume() issue has been corrected. Just use the updated version of the library.

pschatzmann avatar Aug 09 '22 10:08 pschatzmann

@pschatzmann Thank you!I am looking forward to the update!

luke2023 avatar Aug 10 '22 05:08 luke2023

@pschatzmann good luck!

luke2023 avatar Aug 19 '22 14:08 luke2023

@pschatzmann Awesome!Thank you for the update!I'll try it next time! LinChe (KSAC)

luke2023 avatar Aug 24 '22 16:08 luke2023