Fix some compiler warnings when building JUCE

This commit is contained in:
Armin 2026-07-17 15:03:03 +02:00
commit 0beebaa46d
3 changed files with 17 additions and 14 deletions

View file

@ -370,9 +370,9 @@ void ChromaFlockProcessor::processBlock(juce::AudioBuffer<float>& buffer, juce::
juce::ScopedNoDenormals noDenormals;
if (auto* playHead = getPlayHead()) {
juce::AudioPlayHead::CurrentPositionInfo pos;
if (playHead->getCurrentPosition(pos) && pos.bpm > 0.0)
currentBpm = pos.bpm;
if (auto position = playHead->getPosition())
if (auto bpm = position->getBpm())
currentBpm = *bpm;
}
buffer.clear();