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

Method getReductionPrecent

Source/PluginProcessor.cpp:1439–1449  ·  view source on GitHub ↗

drive lookandfeel

Source from the content-addressed store, hash-verified

1437
1438// drive lookandfeel
1439float 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
1451float FireAudioProcessor::getSampleMaxValue(int bandIndex)
1452{

Callers 1

updateDriveMeterMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected