HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
applies hard-clipping distortion. More...
#include <HardClipDistortion.h>
Public Member Functions | |
HardClipDistortion () | |
HardClipDistortion (double clippingLevel) | |
virtual | ~HardClipDistortion ()=default |
virtual std::string | Name () const override |
virtual double | GetClippingLevel () const |
virtual void | SetClippingLevel (double clippingLevel) |
Public Member Functions inherited from HephAudio::AudioEffect | |
virtual | ~AudioEffect ()=default |
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 |
virtual void | Process (AudioBuffer &buffer) |
virtual void | Process (AudioBuffer &buffer, size_t startIndex) |
virtual void | Process (AudioBuffer &buffer, size_t startIndex, size_t frameCount) |
Protected Member Functions | |
virtual void | ProcessST (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override |
Protected Member Functions inherited from HephAudio::AudioEffect | |
AudioEffect () | |
virtual void | ProcessMT (const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) |
Protected Attributes | |
heph_audio_sample_t | clippingLevel |
Protected Attributes inherited from HephAudio::AudioEffect | |
size_t | threadCount |
applies hard-clipping distortion.
HephAudio::HardClipDistortion::HardClipDistortion | ( | ) |
creates a new instance and initializes it with default values.
|
explicit |
creates a new instance and initializes it with the provided values.
clippingLevel | threshold value in decibels. |
|
virtualdefault |
releases the resources and destroys the instance.
|
overridevirtual |
gets the name of the audio effect.
Implements HephAudio::AudioEffect.
|
virtual |
gets the clipping level in decibels.
|
virtual |
sets the clipping level.
clippingLevel | threshold value in decibels. |
|
overrideprotectedvirtual |
applies the effect using single thread.
inputBuffer | contains the dry data. |
outputBuffer | contains the wet data. |
startIndex | index of the first sample to process. |
frameCount | number of frames to process. |
Implements HephAudio::AudioEffect.
|
protected |
threshold value.