| 2379 | } |
| 2380 | |
| 2381 | float FireAudioProcessor::getBandInputRMSLevel(int band, int channel) const |
| 2382 | { |
| 2383 | if (juce::isPositiveAndBelow(band, bands.size())) |
| 2384 | { |
| 2385 | if (auto* bandProcessor = bands[band].get()) |
| 2386 | { |
| 2387 | return channel == 0 ? bandProcessor->mInputLeftRMS.load() : bandProcessor->mInputRightRMS.load(); |
| 2388 | } |
| 2389 | } |
| 2390 | jassertfalse; // Invalid band index |
| 2391 | return 0.0f; |
| 2392 | } |
| 2393 | |
| 2394 | float FireAudioProcessor::getBandOutputRMSLevel(int band, int channel) const |
| 2395 | { |