| 
    HephAudio v3.1.0
    
   A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS. 
   | 
 
applies cubic distortion. More...
#include <CubicDistortion.h>
  
Public Member Functions | |
| CubicDistortion () | |
| CubicDistortion (double factor) | |
| virtual | ~CubicDistortion ()=default | 
| virtual std::string | Name () const override | 
| virtual double | GetFactor () const | 
| virtual void | SetFactor (double factor) | 
  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 (size_t inputFrameCount, const AudioFormatInfo &formatInfo) const | 
| virtual size_t | CalculateAdvanceSize (size_t renderFrameCount, const AudioFormatInfo &formatInfo) const | 
| virtual void | ResetInternalState () | 
| 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 | |
| double | factor | 
  Protected Attributes inherited from HephAudio::AudioEffect | |
| size_t | threadCount | 
applies cubic distortion.
| HephAudio::CubicDistortion::CubicDistortion | ( | ) | 
creates a new instance and initializes it with default values.
      
  | 
  explicit | 
creates a new instance and initializes it with the provided values.
| factor | controls the amount of distortion. In the range of [0, 10]. | 
      
  | 
  virtualdefault | 
releases the resources and destroys the instance.
      
  | 
  overridevirtual | 
gets the name of the audio effect.
Implements HephAudio::AudioEffect.
      
  | 
  virtual | 
gets the factor.
      
  | 
  virtual | 
sets the facotr.
| factor | controls the amount of distortion. In the range of [0, 10]. | 
      
  | 
  overrideprotectedvirtual | 
applies the effect using single thread.
| inputBuffer | contains the audio data which will be processed. | 
| outputBuffer | contains the processed audio data. | 
| startIndex | index of the first sample to process. | 
| frameCount | number of frames to process. | 
Implements HephAudio::AudioEffect.
      
  | 
  protected | 
controls the amount of distortion. In the range of [0, 10].