If we end audio and the last sample is not close to 0 we can hear a popping noise. This functionality brings the last value slowly to 0.
More...
#include <Fade.h>
|
| void | end (Print &print, int steps=200) |
| | When we do not have any data any more to fade out we try to bring the last sample slowly to 0.
|
| |
| void | setChannels (int ch) |
| |
| size_t | write (uint8_t *src, size_t size) |
| |
template<typename T>
class audio_tools::LastSampleFaderT< T >
If we end audio and the last sample is not close to 0 we can hear a popping noise. This functionality brings the last value slowly to 0.
- Template Parameters
-
◆ end()
template<typename T >
| void end |
( |
Print & |
print, |
|
|
int |
steps = 200 |
|
) |
| |
|
inline |
When we do not have any data any more to fade out we try to bring the last sample slowly to 0.
◆ setChannels()
template<typename T >
| void setChannels |
( |
int |
ch | ) |
|
|
inline |
◆ storeLastSamples()
template<typename T >
| void storeLastSamples |
( |
int |
frames, |
|
|
uint8_t * |
src |
|
) |
| |
|
inlineprotected |
◆ write()
template<typename T >
| size_t write |
( |
uint8_t * |
src, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ channels
◆ last
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/Fade.h