arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
LastSampleFader Class 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. Typless implementation. 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 setAudioInfo (AudioInfo info)
 
void setBitsPerSample (int bits)
 
void setChannels (int ch)
 
size_t write (uint8_t *src, size_t size)
 

Protected Attributes

int bits_per_sample = 0
 
LastSampleFaderT< int16_t > f16
 
LastSampleFaderT< int24_tf24
 
LastSampleFaderT< int32_t > f32
 

Detailed Description

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. Typless implementation.


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