Menu

volume

Majenko Technologies
:::C++
WavePro.volume(volume);
WavePro.volume(left,right);

Set the playback volume to the specified volume (both channels) or to individual left and right channels. Values are between 0 (silence) and 255 (100% volume).

Volume is controlled by modifying the samples during playback with the formula:

S_out = (S_in * volume) / 255

Part of: [Arduino Library]


Related

Wiki: Arduino Library

MongoDB Logo MongoDB