arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
audio_tools::VolumeControl Class Referenceabstract

Abstract class for handling of the linear input volume to determine the multiplication factor which should be applied to the audio signal. More...

#include <VolumeControl.h>

Inheritance diagram for audio_tools::VolumeControl:
audio_tools::CachedVolumeControl audio_tools::CallbackVolumeControl audio_tools::ExponentialVolumeControl audio_tools::LinearVolumeControl audio_tools::LogarithmicVolumeControl audio_tools::SimulatedAudioPot

Public Member Functions

virtual float getVolumeFactor (float volume)=0
 determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0). More...
 

Protected Member Functions

virtual float limit (float in)
 limits the output to the range of 0 to 1.0
 
float map (float x, float in_min, float in_max, float out_min, float out_max)
 similar to the Arduino map function - but using floats
 

Detailed Description

Abstract class for handling of the linear input volume to determine the multiplication factor which should be applied to the audio signal.

Author
Phil Schatzmann

Member Function Documentation

◆ getVolumeFactor()

virtual float audio_tools::VolumeControl::getVolumeFactor ( float  volume)
pure virtual

The documentation for this class was generated from the following file: