| 2392 | } |
| 2393 | |
| 2394 | float FireAudioProcessor::getBandOutputRMSLevel(int band, int channel) const |
| 2395 | { |
| 2396 | if (juce::isPositiveAndBelow(band, bands.size())) |
| 2397 | { |
| 2398 | if (auto* bandProcessor = bands[band].get()) |
| 2399 | { |
| 2400 | return channel == 0 ? bandProcessor->mOutputLeftRMS.load() : bandProcessor->mOutputRightRMS.load(); |
| 2401 | } |
| 2402 | } |
| 2403 | jassertfalse; // Invalid band index |
| 2404 | return 0.0f; |
| 2405 | } |
| 2406 | |
| 2407 | float FireAudioProcessor::getBandInputPeakLevel(int band, int channel) const |
| 2408 | { |