:::C++
WavePro.boost(amount);
WavePro.boost(left,right);
Increase the playback volume over 100%. This function increases the volume of each sample within the audio stream to make the whole playback considerably louder.
You can either specify a single number between 0 and 255 as a boost value, which affects both left and right channels the same, or specify individual left and right values and these will be applied to the respective channels. Mono samples are treated as stereo and also get individual left/right boost values.
The formula used for the sample increase is:
S_out = (S_in * (100 + amount)) / 100
This in effect gives a volume level of 100% to 355%.
Part of: [Arduino Library]