Fade In and Fade out in order to prevent popping sound when the audio is started or stopped. The fade in/out is performed over the length of the buffer.
More...
#include <Fade.h>
Fade In and Fade out in order to prevent popping sound when the audio is started or stopped. The fade in/out is performed over the length of the buffer.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ convert()
| void convert |
( |
uint8_t * |
data, |
|
|
int |
bytes, |
|
|
int |
channels, |
|
|
int |
bitsPerSample |
|
) |
| |
|
inline |
Updates the amplitude of the data when a fade in or fade out has been requested.
- Parameters
-
| data | |
| bytes | |
| channels | |
| bitsPerSample | |
◆ convertFrames()
template<typename T >
| void convertFrames |
( |
T * |
data, |
|
|
int |
frames, |
|
|
int |
channels |
|
) |
| |
|
inlineprotected |
◆ fadeIn()
template<typename T >
| void fadeIn |
( |
T * |
data, |
|
|
int |
frames, |
|
|
int |
channels, |
|
|
float |
delta |
|
) |
| |
|
inlineprotected |
◆ fadeOut()
template<typename T >
| void fadeOut |
( |
T * |
data, |
|
|
int |
frames, |
|
|
int |
channels, |
|
|
float |
delta |
|
) |
| |
|
inlineprotected |
◆ isFadeComplete()
Returns true if the conversion has been executed with any data.
◆ isFadeInActive()
◆ isFadeOutActive()
◆ setFadeInActive()
| void setFadeInActive |
( |
bool |
flag | ) |
|
|
inline |
◆ setFadeOutActive()
| void setFadeOutActive |
( |
bool |
flag | ) |
|
|
inline |
◆ channels
◆ is_done
◆ is_fade_in
◆ is_fade_out
◆ volume
The documentation for this class was generated from the following file:
- src/AudioTools/CoreAudio/Fade.h