|
arduino-audio-tools
|
Changes the samples at the beginning or at the end to slowly ramp up the volume. More...
#include <BaseConverter.h>
Public Member Functions | |
| SmoothTransition (int channels, bool fromBeginning, bool fromEnd, float inc=0.01) | |
| void | clear () |
| virtual size_t | convert (uint8_t *src, size_t size) |
| void | reset () |
Protected Member Functions | |
| void | processEnd (T *values, int frameCount) |
| void | processStart (T *values, int frameCount) |
Protected Attributes | |
| int | channels |
| float | end_factor = 0 |
| bool | from_beginning |
| bool | from_end |
| float | inc = 0.01 |
| float | start_factor = 0 |
Changes the samples at the beginning or at the end to slowly ramp up the volume.
| T |
|
inline |
Implements BaseConverter.