arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
audio_tools::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 <Converter.h>

Inheritance diagram for audio_tools::PoppingSoundRemover< T >:
audio_tools::BaseConverter< T >

Public Member Functions

 PoppingSoundRemover (int channels, bool fromBeginning, bool fromEnd)
 
virtual size_t convert (uint8_t *src, size_t size)
 
- Public Member Functions inherited from audio_tools::BaseConverter< T >
 BaseConverter (BaseConverter const &)=delete
 
virtual size_t convert (uint8_t *src, size_t size)=0
 
BaseConverteroperator= (BaseConverter const &)=delete
 

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 audio_tools::PoppingSoundRemover< T >::convert ( uint8_t *  src,
size_t  size 
)
inlinevirtual

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