arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
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>
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

Member Function Documentation

◆ convert()

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

Implements BaseConverter.


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