mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-10-11 21:31:54 +02:00
Fix some compiler warnings when building JUCE
This commit is contained in:
parent
9c3de80748
commit
288fbc1163
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