Closed Jvsjvs closed 2 months ago
You are right. I was converting this method from the old AudioKitStream and there the range was from 0 to 100. I corrected it to 0.02!
Thanks for fixing it this quickly.
Btw, great libraries you have built, very nice!
I personally changed the +0.02 and -0.02 to +0.05 and -0.05, this works better with the twitchy small buttons on the AI Thinker audio kit.
Problem Description
When the default actions are used the methods: actionVolumeUp and actionVolumeDown are used to control the volume in the "MP3 player" (arduino-audio-tools/examples/examples-audiokit /player-sd-audiokit) example.
The actionVolumeUp and actionVolumeDown try to increase and decrease the volume with a step of 2.0f using the incrementVolume method.
However, the volume range is between 0.0f and 1.0f, hence the volume up action sets the volume to max.
When I change this increment to +0.1f and -0.1f the volume buttons work as expected.
Device Description
Any device, but I am using the AI Thinker ESP32 Audio Kit.
Sketch
Starting from line 90 in the file: "AudioBoardStream.h"
Other Steps to Reproduce
Run the "MP3 player" example and press the volume up and volume down buttons.
What is your development environment
PlatformIO
I have checked existing issues, discussions and online documentation