OBSOLETE AudioEffects: the template class describes the input audio to which the effects are applied: e.g. SineGenerator, SquareWaveGenerator, GeneratorFromStream etc. We support only one channel of int16_t data!
More...
#include <AudioEffects.h>
template<class GeneratorT>
class audio_tools::AudioEffects< GeneratorT >
OBSOLETE AudioEffects: the template class describes the input audio to which the effects are applied: e.g. SineGenerator, SquareWaveGenerator, GeneratorFromStream etc. We support only one channel of int16_t data!
We subclass the AudioEffects from GeneratorT so that we can use this class with the GeneratedSoundStream class to output the audio.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ AudioEffects() [1/4]
template<class GeneratorT >
◆ AudioEffects() [2/4]
template<class GeneratorT >
◆ AudioEffects() [3/4]
template<class GeneratorT >
Constructor which is assigning a generator.
◆ AudioEffects() [4/4]
template<class GeneratorT >
Constructor which is assigning a Stream as input. The stream must consist of int16_t values with the indicated number of channels. Type type parameter is e.g. <GeneratorFromStream<effect_t>
◆ ~AudioEffects()
template<class GeneratorT >
◆ addEffect() [1/2]
template<class GeneratorT >
Adds an effect object (by reference)
◆ addEffect() [2/2]
template<class GeneratorT >
Adds an effect using a pointer.
◆ applyRamp()
◆ audioInfo()
◆ begin() [1/2]
◆ begin() [2/2]
Starts the processing with the provided AudioInfo.
◆ clear()
template<class GeneratorT >
deletes all defined effects
◆ defaultConfig()
Provides the default configuration.
◆ end()
◆ findEffect()
template<class GeneratorT >
◆ generator()
template<class GeneratorT >
| GeneratorT & generator |
( |
| ) |
|
|
inline |
Provides access to the sound generator.
◆ isActive()
| virtual bool isActive |
( |
| ) |
|
|
inlinevirtualinherited |
Checks if the begin method has been called - after end() isActive is false.
◆ operator[]()
template<class GeneratorT >
◆ readBytes()
| virtual size_t readBytes |
( |
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlinevirtualinherited |
Provides the data as byte array with the requested number of channels.
◆ readBytesFrames()
| size_t readBytesFrames |
( |
uint8_t * |
buffer, |
|
|
size_t |
lengthBytes, |
|
|
int |
frames, |
|
|
int |
channels |
|
) |
| |
|
inlineprotectedinherited |
◆ readBytesFromBuffer()
| size_t readBytesFromBuffer |
( |
uint8_t * |
buffer, |
|
|
size_t |
lengthBytes, |
|
|
int |
frame_size, |
|
|
int |
channels |
|
) |
| |
|
inlineprotectedinherited |
◆ readSample()
template<class GeneratorT >
◆ recalculatePlayTime()
| void recalculatePlayTime |
( |
| ) |
|
|
inlineprotectedinherited |
◆ setAudioInfo()
◆ setFrequency()
| virtual void setFrequency |
( |
float |
frequency | ) |
|
|
inlinevirtualinherited |
Abstract method: not implemented! Just provides an error message...
◆ setInput()
template<class GeneratorT >
| void setInput |
( |
GeneratorT & |
in | ) |
|
|
inline |
Defines the input source for the raw guitar input.
◆ setPlayTime()
| void setPlayTime |
( |
uint32_t |
playMs, |
|
|
uint8_t |
upPercent = 20, |
|
|
uint8_t |
downPercent = 30 |
|
) |
| |
|
inlineinherited |
Defines the play time in ms and the ramp up and ramp down time in percent.
◆ size()
template<class GeneratorT >
Provides the actual number of defined effects.
◆ active
◆ activeWarningIssued
◆ currentSample
◆ downPercent
◆ effects
template<class GeneratorT >
◆ factor
◆ info
◆ owns_generator
template<class GeneratorT >
| bool owns_generator = false |
|
protected |
◆ p_generator
template<class GeneratorT >
| GeneratorT* p_generator =nullptr |
|
protected |
◆ playMs
◆ playSamples
◆ rampDownDec
◆ rampDownSamples
◆ rampUpInc
◆ ring_buffer
◆ upPercent
◆ upSamples
The documentation for this class was generated from the following file: