0

Increasing volume in FXsoundboard using serial control
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Increasing volume in FXsoundboard using serial control

by naley on Fri Feb 16, 2018 2:30 pm

Hello,

I am triggering an audio file in FX soundboard using serial control .
However the volume is too less. Can anyone please tell me how do I increase the volume in serial mode?
Is this correct way to do so ?
Code: Select all | TOGGLE FULL SIZE
const int volup = 8;
sfx.volUp();

If i want the maximum volume, how should I increase it ?

Thank you!

naley
 
Posts: 95
Joined: Fri Apr 28, 2017 4:26 pm

Re: Increasing volume in FXsoundboard using serial control

by adafruit_support_carter on Mon Feb 19, 2018 2:25 pm

That is correct. The underlying command is documented here:
https://learn.adafruit.com/adafruit-aud ... p-and-down
All the library functions volUp and volDown are doing is sending a '+\n':
https://github.com/adafruit/Adafruit_So ... d.cpp#L199
or a '-\n':
https://github.com/adafruit/Adafruit_So ... d.cpp#L212

If i want the maximum volume, how should I increase it ?

Hmm, I'm not seeing a way to set volume directly. When you call volUp, it returns the new volume level. So you could just call that in a loop that checks the return and stops when it reaches the max value of 204.

adafruit_support_carter
 
Posts: 7643
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.