mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Fix some compiler warnings when building JUCE
This commit is contained in:
parent
8977e2d3c4
commit
0beebaa46d
3 changed files with 17 additions and 14 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue