arduino-audio-tools
Loading...
Searching...
No Matches
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_tf16
 
LastSampleFaderT< int24_tf24
 
LastSampleFaderT< int32_tf32
 

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.

Member Function Documentation

◆ end()

void end ( Print print,
int  steps = 200 
)
inline

When we do not have any data any more to fade out we try to bring the last sample slowly to 0.

◆ setAudioInfo()

void setAudioInfo ( AudioInfo  info)
inline

◆ setBitsPerSample()

void setBitsPerSample ( int  bits)
inline

◆ setChannels()

void setChannels ( int  ch)
inline

◆ write()

size_t write ( uint8_t src,
size_t  size 
)
inline

Member Data Documentation

◆ bits_per_sample

int bits_per_sample = 0
protected

◆ f16

LastSampleFaderT<int16_t> f16
protected

◆ f24

LastSampleFaderT<int24_t> f24
protected

◆ f32

LastSampleFaderT<int32_t> f32
protected

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