MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / calculateAttackOrRelease

Method calculateAttackOrRelease

src/audio_effects/Compressor.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107float Compressor::calculateAttackOrRelease(float value)
108{
109 if (value == 0.0f)
110 return 0.0f;
111 else
112 return pow (inverseE, inverse_sample_rate / value);
113}
114
115// Generate JSON string of this object
116std::string Compressor::Json() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected