HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
base class for audio effects that use a temporary buffer while processing. More...
#include <DoubleBufferedAudioEffect.h>
Public Member Functions | |
virtual | ~DoubleBufferedAudioEffect ()=default |
virtual void | Process (AudioBuffer &buffer, size_t startIndex, size_t frameCount) override |
virtual void | Process (AudioBuffer &buffer) |
virtual void | Process (AudioBuffer &buffer, size_t startIndex) |
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 (const AudioBuffer &buffer) const |
Protected Member Functions | |
DoubleBufferedAudioEffect () | |
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) |
Additional Inherited Members | |
Protected Attributes inherited from HephAudio::AudioEffect | |
size_t | threadCount |
base class for audio effects that use a temporary buffer while processing.
|
protected |
creates a new instance and initializes it with default values.
|
virtualdefault |
releases the resources and destroys the instance.
|
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::AudioEffect.
Reimplemented in HephAudio::Flanger, HephAudio::ModulationEffect, HephAudio::Tremolo, and HephAudio::Vibrato.
|
virtual |
Applies the effect.
buffer | contains the audio data which will be processed. |
Reimplemented from HephAudio::AudioEffect.
Reimplemented in HephAudio::ModulationEffect, 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::AudioEffect.
Reimplemented in HephAudio::ModulationEffect, HephAudio::Tremolo, and HephAudio::Vibrato.