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

If we end audio and the last sample is not close to 0 we can hear a popping noise. This functionality brings the last value slowly to 0. More...

#include <Fade.h>

Public Member Functions

void end (Print &print, int steps=200)
 When we do not have any data any more to fade out we try to bring the last sample slowly to 0.
 
void setChannels (int ch)
 
size_t write (uint8_t *src, size_t size)
 

Protected Member Functions

void storeLastSamples (int frames, uint8_t *src)
 

Protected Attributes

int channels = 0
 
Vector< T > last {0}
 

Detailed Description

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

If we end audio and the last sample is not close to 0 we can hear a popping noise. This functionality brings the last value slowly to 0.

Template Parameters
T

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