1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioProcessorGraph: Tidy up long line

This commit is contained in:
reuk 2025-03-31 13:23:00 +01:00
parent 776de625f9
commit 43b9dc4905
No known key found for this signature in database

View file

@ -473,10 +473,14 @@ public:
preparedNodes.insert (node->nodeID);
node->getProcessor()->setProcessingPrecision (node->getProcessor()->supportsDoublePrecisionProcessing() ? current->precision
: AudioProcessor::singlePrecision);
node->getProcessor()->setRateAndBufferSizeDetails (current->sampleRate, current->blockSize);
node->getProcessor()->prepareToPlay (current->sampleRate, current->blockSize);
auto* nodeProcessor = node->getProcessor();
const auto precision = nodeProcessor->supportsDoublePrecisionProcessing()
? current->precision
: AudioProcessor::singlePrecision;
nodeProcessor->setProcessingPrecision (precision);
nodeProcessor->setRateAndBufferSizeDetails (current->sampleRate, current->blockSize);
nodeProcessor->prepareToPlay (current->sampleRate, current->blockSize);
}
}