|
arduino-audio-tools
|
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>


Public Member Functions | |
| SilenceRemovalConverter (int n=8, int aplidudeLimit=2) | |
| void | clear () |
| virtual size_t | convert (uint8_t *data, size_t size) override |
| void | reset () |
Protected Member Functions | |
| int | findLastAudioPos (T *audio, int pos) |
| void | set (int n=5, int aplidudeLimit=2) |
Protected Attributes | |
| bool | active = false |
| int | amplidude_limit = 0 |
| const uint8_t * | buffer = nullptr |
| int | n |
| int | priorLastAudioPos = 0 |
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.
| T |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements BaseConverter.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |