| 2405 | } |
| 2406 | |
| 2407 | float 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 | |
| 2420 | float FireAudioProcessor::getBandOutputPeakLevel(int band, int channel) const |
| 2421 | { |