mirror of
https://codeberg.org/armin/mindball.git
synced 2026-09-01 03:40:49 +02:00
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:
parent
2e85d45983
commit
7f6eee0186
3 changed files with 41 additions and 15 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue