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

Big value gaps (at the beginning and the end of a recording) can lead to some popping sounds. We will try to set the values to 0 until the first transition thru 0 of the audio curve. More...

#include <BaseConverter.h>

Inheritance diagram for PoppingSoundRemover< T >:
BaseConverter

Public Member Functions

 PoppingSoundRemover (int channels, bool fromBeginning, bool fromEnd)
 
virtual size_t convert (uint8_t *src, size_t size)
 

Protected Member Functions

void clearAfterLastTransition (int channels, int channel, T *values, int sampleCount)
 
void clearUpTo1stTransition (int channels, int channel, T *values, int sampleCount)
 

Protected Attributes

int channels
 
bool from_beginning
 
bool from_end
 

Detailed Description

template<typename T = int16_t>
class audio_tools::PoppingSoundRemover< T >

Big value gaps (at the beginning and the end of a recording) can lead to some popping sounds. We will try to set the values to 0 until the first transition thru 0 of the audio curve.

Template Parameters
T

Constructor & Destructor Documentation

◆ PoppingSoundRemover()

template<typename T = int16_t>
PoppingSoundRemover ( int  channels,
bool  fromBeginning,
bool  fromEnd 
)
inline

Member Function Documentation

◆ clearAfterLastTransition()

template<typename T = int16_t>
void clearAfterLastTransition ( int  channels,
int  channel,
T values,
int  sampleCount 
)
inlineprotected

◆ clearUpTo1stTransition()

template<typename T = int16_t>
void clearUpTo1stTransition ( int  channels,
int  channel,
T values,
int  sampleCount 
)
inlineprotected

◆ convert()

template<typename T = int16_t>
virtual size_t convert ( uint8_t src,
size_t  size 
)
inlinevirtual

Implements BaseConverter.

Member Data Documentation

◆ channels

template<typename T = int16_t>
int channels
protected

◆ from_beginning

template<typename T = int16_t>
bool from_beginning
protected

◆ from_end

template<typename T = int16_t>
bool from_end
protected

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