arduino-audio-tools
Loading...
Searching...
No Matches
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 <CodecOpusOgg.h>

Inheritance diagram for PoppingSoundRemover< T >:
BaseConverter BaseConverter

Public Member Functions

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

Protected Member Functions

void clearAfterLastTransition (int channels, int channel, T *values, int sampleCount)
void clearAfterLastTransition (int channels, int channel, T *values, int sampleCount)
void clearUpTo1stTransition (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::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() [1/2]

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

◆ PoppingSoundRemover() [2/2]

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

Member Function Documentation

◆ clearAfterLastTransition() [1/2]

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

◆ clearAfterLastTransition() [2/2]

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

◆ clearUpTo1stTransition() [1/2]

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

◆ clearUpTo1stTransition() [2/2]

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

◆ convert() [1/2]

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

Implements BaseConverter.

◆ convert() [2/2]

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 files: