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

@ -74,7 +74,8 @@ public:
};
buildInfo.setJustificationType (juce::Justification::centredRight);
buildInfo.setFont (juce::Font (juce::Font::getDefaultMonospacedFontName(), 9.0f, 0));
buildInfo.setFont (juce::Font (juce::FontOptions (juce::Font::getDefaultMonospacedFontName(), 9.0f, 0)));
buildInfo.setColour (juce::Label::textColourId, MindballColors::textDim);
juce::String dirty = mindball::BuildInfo::gitDirty ? " +dirty" : "";
juce::String hash = juce::String (mindball::BuildInfo::gitHash);

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);