drive lookandfeel
| 1437 | |
| 1438 | // drive lookandfeel |
| 1439 | float FireAudioProcessor::getReductionPrecent(int bandIndex) |
| 1440 | { |
| 1441 | // Safely check if the provided index is valid for our bands vector. |
| 1442 | if (juce::isPositiveAndBelow(bandIndex, bands.size())) |
| 1443 | if (auto* band = bands[bandIndex].get()) |
| 1444 | return band->mReductionPercent; // Return the value from the BandProcessor instance. |
| 1445 | |
| 1446 | // If the index is invalid, assert in debug mode and return a safe default. |
| 1447 | jassertfalse; |
| 1448 | return 0.0f; |
| 1449 | } |
| 1450 | |
| 1451 | float FireAudioProcessor::getSampleMaxValue(int bandIndex) |
| 1452 | { |