arduino-audio-tools
|
Provide the volume function as callback method: This is easy to use e.g together with a lamda function! More...
#include <VolumeControl.h>
Public Member Functions | |
CallbackVolumeControl (float(*cb)(float in)) | |
virtual float | getVolumeFactor (float volume) |
determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0). | |
Protected Member Functions | |
virtual float | limit (float in) |
limits the output to the range of 0 to 1.0 | |
Protected Attributes | |
float(* | callback )(float in) = nullptr |
Provide the volume function as callback method: This is easy to use e.g together with a lamda function!