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
HephAudio
HeaderFiles
AudioEffects
CubicDistortion.h
Go to the documentation of this file.
1
#pragma once
2
#include "
HephAudioShared.h
"
3
#include "
AudioEffect.h
"
4
7
namespace
HephAudio
8
{
13
class
CubicDistortion
:
public
AudioEffect
14
{
15
protected
:
21
double
factor
;
22
23
public
:
25
CubicDistortion
();
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
}
AudioEffect.h
HephAudioShared.h
HephAudio::AudioBuffer
class for storing the audio samples in internal format.
Definition
AudioBuffer.h:16
HephAudio::AudioEffect
base class for the audio effects.
Definition
AudioEffect.h:15
HephAudio::CubicDistortion
applies cubic distortion.
Definition
CubicDistortion.h:14
HephAudio::CubicDistortion::SetFactor
virtual void SetFactor(double factor)
HephAudio::CubicDistortion::CubicDistortion
CubicDistortion(double factor)
HephAudio::CubicDistortion::~CubicDistortion
virtual ~CubicDistortion()=default
HephAudio::CubicDistortion::factor
double factor
Definition
CubicDistortion.h:21
HephAudio::CubicDistortion::CubicDistortion
CubicDistortion()
HephAudio::CubicDistortion::Name
virtual std::string Name() const override
HephAudio::CubicDistortion::ProcessST
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
HephAudio::CubicDistortion::GetFactor
virtual double GetFactor() const
Generated by
1.11.0