arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
audio_tools::SmoothTransition< T > Class Template Reference

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

#include <Converter.h>

Inheritance diagram for audio_tools::SmoothTransition< T >:
audio_tools::BaseConverter< T >

Public Member Functions

 SmoothTransition (int channels, bool fromBeginning, bool fromEnd, float inc=0.01)
 
virtual size_t convert (uint8_t *src, size_t size)
 
- Public Member Functions inherited from audio_tools::BaseConverter< T >
 BaseConverter (BaseConverter const &)=delete
 
virtual size_t convert (uint8_t *src, size_t size)=0
 
BaseConverteroperator= (BaseConverter const &)=delete
 

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

Member Function Documentation

◆ convert()

template<typename T >
virtual size_t audio_tools::SmoothTransition< T >::convert ( uint8_t *  src,
size_t  size 
)
inlinevirtual

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