arduino-audio-tools
arduino-audio-tools copied to clipboard
Read A2dp volume problem
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
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 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!
Going to make a open source watch with Bluetooth player!
I suggest that you share your project here https://github.com/pschatzmann/arduino-audio-tools/discussions/categories/show-and-tell
@pschatzmann Thank you for your suggestions! Although I set it to 0.6 it still returns 'ovf' thanks! LinChe
@pschatzmann Ok
the player.volume() issue has been corrected. Just use the updated version of the library.
@pschatzmann Thank you!I am looking forward to the update!
@pschatzmann good luck!
@pschatzmann Awesome!Thank you for the update!I'll try it next time! LinChe (KSAC)