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
HardClipDistortion.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
22 public:
25
33
35 virtual ~HardClipDistortion() = default;
36
37 virtual std::string Name() const override;
38
43 virtual double GetClippingLevel() const;
44
50 virtual void SetClippingLevel(double clippingLevel);
51
52 protected:
53 virtual void ProcessST(const AudioBuffer& inputBuffer, AudioBuffer& outputBuffer, size_t startIndex, size_t frameCount) override;
54 };
55}
float heph_audio_sample_t
Definition HephAudioShared.h:133
class for storing the audio samples in internal format.
Definition AudioBuffer.h:16
base class for the audio effects.
Definition AudioEffect.h:15
applies hard-clipping distortion.
Definition HardClipDistortion.h:14
virtual double GetClippingLevel() const
virtual std::string Name() const override
heph_audio_sample_t clippingLevel
Definition HardClipDistortion.h:20
virtual void SetClippingLevel(double clippingLevel)
HardClipDistortion(double clippingLevel)
virtual void ProcessST(const AudioBuffer &inputBuffer, AudioBuffer &outputBuffer, size_t startIndex, size_t frameCount) override
virtual ~HardClipDistortion()=default