Removes any silence from the buffer that is longer then n samples with a amplitude below the indicated threshhold. If you process multiple channels you need to multiply the channels with the number of samples to indicate n.
More...
#include <BaseConverter.h>
template<typename T = int16_t>
class audio_tools::SilenceRemovalConverter< T >
Removes any silence from the buffer that is longer then n samples with a amplitude below the indicated threshhold. If you process multiple channels you need to multiply the channels with the number of samples to indicate n.
- Template Parameters
-
◆ SilenceRemovalConverter()
template<typename T = int16_t>
◆ clear()
template<typename T = int16_t>
◆ convert()
template<typename T = int16_t>
| virtual size_t convert |
( |
uint8_t * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inlineoverridevirtual |
◆ findLastAudioPos()
template<typename T = int16_t>
| int findLastAudioPos |
( |
T * |
audio, |
|
|
int |
pos |
|
) |
| |
|
inlineprotected |
◆ reset()
template<typename T = int16_t>
◆ set()
template<typename T = int16_t>
| void set |
( |
int |
n = 5, |
|
|
int |
aplidudeLimit = 2 |
|
) |
| |
|
inlineprotected |
◆ active
template<typename T = int16_t>
◆ amplidude_limit
template<typename T = int16_t>
◆ buffer
template<typename T = int16_t>
| const uint8_t* buffer = nullptr |
|
protected |
template<typename T = int16_t>
◆ priorLastAudioPos
template<typename T = int16_t>
| int priorLastAudioPos = 0 |
|
protected |
The documentation for this class was generated from the following file: