HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
CubicDistortion.h
Go to the documentation of this file.
1#pragma once
2#include "HephAudioShared.h"
3#include "AudioEffect.h"
4
7namespace HephAudio
8{
14 {
15 protected:
21 double factor;
22
23 public:
26
33 explicit CubicDistortion(double factor);
34
36 virtual ~CubicDistortion() = default;
37
38 virtual std::string Name() const override;
39
44 virtual double GetFactor() const;
45
51 virtual void SetFactor(double factor);
52
53 protected:
54 virtual void ProcessST(const AudioBuffer& inputBuffer, AudioBuffer& outputBuffer, size_t startIndex, size_t frameCount) override;
55 };
56}
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for the audio effects.
Definition AudioEffect.h:15
applies cubic distortion.
Definition CubicDistortion.h:14
virtual void SetFactor(double factor)
CubicDistortion(double factor)
virtual ~CubicDistortion()=default
double factor
Definition CubicDistortion.h:21
virtual std::string Name() const override
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
virtual double GetFactor() const