Remove GTK dependency and fix build on Arch/Artix

- Remove pointless GTK dependency
- Improve error message when dependency missing (gtk.h)
- Fix build on Arch/Artix
This commit is contained in:
Armin 2026-08-29 10:09:28 +02:00
commit 7f6eee0186
3 changed files with 41 additions and 15 deletions

View file

@ -117,9 +117,9 @@ void MindballAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juc
double bpm = lastBpm.load (std::memory_order_relaxed);
if (auto* playHead = getPlayHead())
{
juce::AudioPlayHead::CurrentPositionInfo pos;
if (playHead->getCurrentPosition (pos) && pos.bpm > 0)
bpm = pos.bpm;
if (const auto pos = playHead->getPosition())
if (const auto newBpm = pos->getBpm())
bpm = *newBpm;
}
lastBpm.store (bpm, std::memory_order_relaxed);