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
ArctanDistortion.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
ArctanDistortion
:
public
AudioEffect
14
{
15
protected
:
21
double
factor
;
22
23
public
:
25
ArctanDistortion
();
26
33
explicit
ArctanDistortion
(
double
factor
);
34
36
virtual
~ArctanDistortion
() =
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::ArctanDistortion
applies soft-clipping distortion via arctan function.
Definition
ArctanDistortion.h:14
HephAudio::ArctanDistortion::factor
double factor
Definition
ArctanDistortion.h:21
HephAudio::ArctanDistortion::ProcessST
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
HephAudio::ArctanDistortion::ArctanDistortion
ArctanDistortion(double factor)
HephAudio::ArctanDistortion::ArctanDistortion
ArctanDistortion()
HephAudio::ArctanDistortion::GetFactor
virtual double GetFactor() const
HephAudio::ArctanDistortion::SetFactor
virtual void SetFactor(double factor)
HephAudio::ArctanDistortion::~ArctanDistortion
virtual ~ArctanDistortion()=default
HephAudio::ArctanDistortion::Name
virtual std::string Name() const override
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
Generated by
1.11.0