arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SmoothTransition< T > Class Template Reference

Changes the samples at the beginning or at the end to slowly ramp up the volume. More...

#include <BaseConverter.h>

Inheritance diagram for SmoothTransition< T >:
BaseConverter

Public Member Functions

 SmoothTransition (int channels, bool fromBeginning, bool fromEnd, float inc=0.01)
 
virtual size_t convert (uint8_t *src, size_t size)
 

Protected Member Functions

void processEnd (int channels, int channel, T *values, int sampleCount)
 
void processStart (int channels, int channel, T *values, int sampleCount)
 

Protected Attributes

int channels
 
float factor = 0
 
bool from_beginning
 
bool from_end
 
float inc = 0.01
 

Detailed Description

template<typename T>
class audio_tools::SmoothTransition< T >

Changes the samples at the beginning or at the end to slowly ramp up the volume.

Template Parameters
T

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