MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / getBandInputPeakLevel

Method getBandInputPeakLevel

Source/PluginProcessor.cpp:2407–2418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2405}
2406
2407float FireAudioProcessor::getBandInputPeakLevel(int band, int channel) const
2408{
2409 if (juce::isPositiveAndBelow(band, bands.size()))
2410 {
2411 if (auto* bandProcessor = bands[band].get())
2412 {
2413 return channel == 0 ? bandProcessor->mInputLeftPeak.load() : bandProcessor->mInputRightPeak.load();
2414 }
2415 }
2416 jassertfalse; // Invalid band index
2417 return 0.0f;
2418}
2419
2420float FireAudioProcessor::getBandOutputPeakLevel(int band, int channel) const
2421{

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected