MCPcopy Create free account
hub / github.com/LabSound/LabSound / DynamicsCompressorKernel

Method DynamicsCompressorKernel

src/internal/src/DynamicsCompressorKernel.cpp:29–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27const float uninitializedValue = -1;
28
29DynamicsCompressorKernel::DynamicsCompressorKernel(unsigned numberOfChannels)
30 : m_lastPreDelayFrames(DefaultPreDelayFrames)
31 , m_preDelayReadIndex(0)
32 , m_preDelayWriteIndex(DefaultPreDelayFrames)
33 , m_ratio(uninitializedValue)
34 , m_slope(uninitializedValue)
35 , m_linearThreshold(uninitializedValue)
36 , m_dbThreshold(uninitializedValue)
37 , m_dbKnee(uninitializedValue)
38 , m_kneeThreshold(uninitializedValue)
39 , m_kneeThresholdDb(uninitializedValue)
40 , m_ykneeThresholdDb(uninitializedValue)
41 , m_K(uninitializedValue)
42{
43 setNumberOfChannels(numberOfChannels);
44
45 // Initializes most member variables
46 reset();
47}
48
49void DynamicsCompressorKernel::setNumberOfChannels(unsigned numberOfChannels)
50{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected