What is the best way to increase and decrease the volume with an encoder? #43
-
So I'm trying to make a Bluetooth receiver with an LCD and a rotary encoder and each time I try to add or subtract 1 to the volume of the kit and it never changes |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Which API are you using ? In the AudioKitStream the volume is between 0 and 1.0! |
Beta Was this translation helpful? Give feedback.
-
No, I disagree! Did you look into the class documentation if the AudioKitStream class ? I really created the documentation to avoid this kind of discussions... |
Beta Was this translation helpful? Give feedback.
-
Yes I did but how can I do it
Can you show me an example
yariel
…On Wed, Sep 21, 2022, 11:38 PM Phil Schatzmann ***@***.***> wrote:
No, I disagree!
The one existing incremental function is sufficient: Increasing is with
positive numbers, decreasing is with negative numbers.
Did you look into the class documentation ?
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUHTE7XZASPKOSXRE3FYKZTV7PIDFANCNFSM6AAAAAAQSONGVQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Just call kit.incrementVolume(2) to increase or kit.incrementVolume(-2) to decrease the volue - or use whatever number fits you. The bigger the number the bigger the impact... |
Beta Was this translation helpful? Give feedback.
Just call kit.incrementVolume(2) to increase or kit.incrementVolume(-2) to decrease the volue - or use whatever number fits you. The bigger the number the bigger the impact...
You should really learn to read the documentation!