DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
Gain.h File Reference

Smoothed gain processor with fade, mute, and click-free phase inversion. More...

#include "../Core/DspMath.h"
#include "../Core/SmoothedValue.h"
#include "../Core/AudioSpec.h"
#include "../Core/AudioBuffer.h"
#include "../Core/SimdOps.h"
#include "../Core/StateBlob.h"
#include <algorithm>
#include <atomic>
#include <cmath>
#include <cstdint>
#include <vector>
Include dependency graph for Gain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dspark::Gain< T >
 Professional click-free gain processor. More...
 

Namespaces

namespace  dspark
 Main namespace for the DSPark framework.
 

Detailed Description

Smoothed gain processor with fade, mute, and click-free phase inversion.

Applies gain to audio with exponential click-free ramping. Ensures zero artifacts during parameter changes. Thread-safe design ensures control methods can be called from the UI thread while processing runs lock-free in the audio thread; non-finite setter values are ignored.

Dependencies: Core/DspMath.h, Core/SmoothedValue.h, Core/AudioSpec.h, Core/AudioBuffer.h, Core/SimdOps.h, Core/StateBlob.h.

Definition in file Gain.h.