| 27 | const float uninitializedValue = -1; |
| 28 | |
| 29 | DynamicsCompressorKernel::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 | |
| 49 | void DynamicsCompressorKernel::setNumberOfChannels(unsigned numberOfChannels) |
| 50 | { |
nothing calls this directly
no outgoing calls
no test coverage detected