|
HephAudio v3.1.0
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
base class for effects that use LFOs. More...
#include <ModulationEffect.h>
Public Member Functions | |
| virtual | ~ModulationEffect ()=default |
| virtual void | ResetInternalState () override |
| virtual void | Process (AudioBuffer &buffer, size_t startIndex, size_t frameCount) override |
| virtual void | SetOscillator (const Oscillator &lfo) |
| virtual double | GetDepth () const |
| virtual void | SetDepth (double depth) |
| virtual void | Process (AudioBuffer &buffer) |
| virtual void | Process (AudioBuffer &buffer, size_t startIndex) |
Public Member Functions inherited from HephAudio::DoubleBufferedAudioEffect | |
| virtual | ~DoubleBufferedAudioEffect ()=default |
Public Member Functions inherited from HephAudio::AudioEffect | |
| virtual | ~AudioEffect ()=default |
| virtual std::string | Name () const =0 |
| virtual bool | HasMTSupport () const |
| virtual bool | HasRTSupport () const |
| virtual size_t | GetThreadCount () const |
| virtual void | SetThreadCount (size_t threadCount) |
| virtual size_t | CalculateRequiredFrameCount (size_t outputFrameCount, const AudioFormatInfo &formatInfo) const |
| virtual size_t | CalculateOutputFrameCount (size_t inputFrameCount, const AudioFormatInfo &formatInfo) const |
| virtual size_t | CalculateAdvanceSize (size_t renderFrameCount, const AudioFormatInfo &formatInfo) const |
Protected Member Functions | |
| ModulationEffect () | |
| ModulationEffect (double depth, const Oscillator &lfo) | |
Protected Member Functions inherited from HephAudio::DoubleBufferedAudioEffect | |
| DoubleBufferedAudioEffect () | |
| virtual AudioBuffer | CreateOutputBuffer (const AudioBuffer &inputBuffer, size_t startIndex, size_t frameCount) const |
| virtual void | InitializeOutputBuffer (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) const |
Protected Member Functions inherited from HephAudio::AudioEffect | |
| AudioEffect () | |
| virtual void | ProcessST (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount)=0 |
| virtual void | ProcessMT (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) |
Protected Attributes | |
| Heph::DoubleBuffer | lfoBuffer |
| double | depth |
| size_t | lfoIndex |
Protected Attributes inherited from HephAudio::AudioEffect | |
| size_t | threadCount |
base class for effects that use LFOs.
|
protected |
creates a new instance and initializes it with default values.
|
protected |
creates a new instance and initializes it with the provided values.
| depth | controls the dry/wet mix ratio. Ranges between 0 and 1. |
| lfo | low-frequency oscillator. |
|
virtualdefault |
releases the resources and destroys the instance.
|
overridevirtual |
resets the variables internally used for processing.
Reimplemented from HephAudio::AudioEffect.
Reimplemented in HephAudio::Flanger, and HephAudio::Vibrato.
|
overridevirtual |
Applies the effect.
| buffer | contains the audio data which will be processed. |
| startIndex | index of the first audio frame to process. |
| frameCount | number of frames to process. |
Reimplemented from HephAudio::DoubleBufferedAudioEffect.
Reimplemented in HephAudio::Flanger, HephAudio::Tremolo, and HephAudio::Vibrato.
|
virtual |
sets the lfo.
| lfo | low-frequency oscillator. |
|
virtual |
gets the depth.
|
virtual |
sets the depth.
| depth | controls the dry/wet mix ratio. Ranges between 0 and 1. |
|
virtual |
Applies the effect.
| buffer | contains the audio data which will be processed. |
Reimplemented from HephAudio::DoubleBufferedAudioEffect.
Reimplemented in HephAudio::Tremolo, and HephAudio::Vibrato.
|
virtual |
Applies the effect.
| buffer | contains the audio data which will be processed. |
| startIndex | index of the first audio frame to process. |
Reimplemented from HephAudio::DoubleBufferedAudioEffect.
Reimplemented in HephAudio::Tremolo, and HephAudio::Vibrato.
|
protected |
contains one period long data.
|
protected |
controls the dry/wet mix ratio. Ranges between 0 and 1.
|
protected |
index of the last accessed sample.