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

Method maxAbsValue

src/core/AudioBus.cpp:217–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217float AudioBus::maxAbsValue() const
218{
219 float max = 0.0f;
220 for (int i = 0; i < numberOfChannels(); ++i)
221 {
222 max = std::max(max, channel(i)->maxAbsValue());
223 }
224
225 return max;
226}
227
228void AudioBus::normalize()
229{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected