arduino-audio-tools
Loading...
Searching...
No Matches
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 VolumeControl:
CachedVolumeControl CallbackVolumeControl ExponentialVolumeControl LinearVolumeControl LogarithmicVolumeControl 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).

Protected Member Functions

virtual float limit (float in)
 limits the output to the range of 0 to 1.0

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 getVolumeFactor ( float volume)
pure virtual

determines a multiplication factor (0.0 to 1.0) from an input value (0.0 to 1.0).

Implemented in CachedVolumeControl, CallbackVolumeControl, ExponentialVolumeControl, LinearVolumeControl, LogarithmicVolumeControl, and SimulatedAudioPot.

◆ limit()

virtual float limit ( float in)
inlineprotectedvirtual

limits the output to the range of 0 to 1.0


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