fix compilation issues

This commit is contained in:
Armin 2026-07-24 02:59:31 +02:00
commit c06aa7b04f
4 changed files with 3335 additions and 25 deletions

View file

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="9 14 4 9 9 4"></polyline>
<path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>
<polyline points="15 10 20 15 15 20"></polyline>
<path d="M4 4v7a4 4 0 0 0 4 4h12"></path>
</svg>

After

Width:  |  Height:  |  Size: 353 B

View file

@ -14,7 +14,7 @@ VST3_DST := $(HOME)/Library/Audio/Plug-Ins/VST3/$(PLUGIN_NAME).vst3
AU_DST := $(HOME)/Library/Audio/Plug-Ins/Components/$(PLUGIN_NAME).component AU_DST := $(HOME)/Library/Audio/Plug-Ins/Components/$(PLUGIN_NAME).component
# ---------- phony targets ---------- # ---------- phony targets ----------
.PHONY: all install uninstall clean help configure build build-au build-all .PHONY: all install uninstall clean clear-cache help configure build build-au build-all
all: install all: install
@ -32,7 +32,11 @@ build-au: configure
build-all: configure build-all: configure
cmake --build $(BUILD_DIR) --target JustASample_All -j$(NPROC) cmake --build $(BUILD_DIR) --target JustASample_All -j$(NPROC)
FL_CACHE := $(HOME)/Library/Caches/com.image-line.flstudio
install: install-vst3 install-au install: install-vst3 install-au
@rm -rf "$(FL_CACHE)"
@echo "Cleared FL Studio plugin cache"
install-vst3: build install-vst3: build
@mkdir -p "$(VST3_DST)" @mkdir -p "$(VST3_DST)"
@ -50,10 +54,16 @@ install-all: build-all install-vst3 install-au
uninstall: uninstall:
rm -rf "$(VST3_DST)" "$(AU_DST)" rm -rf "$(VST3_DST)" "$(AU_DST)"
@echo "Removed plugin from ~/Library/Audio/Plug-Ins/" @rm -rf "$(FL_CACHE)"
@echo "Removed plugin and cleared FL Studio cache"
clean: clean:
rm -rf $(BUILD_DIR) rm -rf $(BUILD_DIR)
@rm -rf "$(FL_CACHE)"
clear-cache:
@rm -rf "$(FL_CACHE)"
@echo "Cleared FL Studio plugin cache"
help: help:
@echo "Targets:" @echo "Targets:"
@ -66,5 +76,6 @@ help:
@echo " make install-au - install AU only" @echo " make install-au - install AU only"
@echo " make install-all - install all formats" @echo " make install-all - install all formats"
@echo " make uninstall - remove all installed copies" @echo " make uninstall - remove all installed copies"
@echo " make clean - remove build directory" @echo " make clean - remove build directory and FL Studio cache"
@echo " make clear-cache - clear FL Studio plugin cache"
@echo " make help - show this message" @echo " make help - show this message"

View file

@ -294,6 +294,7 @@ JustaSampleAudioProcessorEditor::JustaSampleAudioProcessorEditor(JustaSampleAudi
addAndMakeVisible(showFXButton); addAndMakeVisible(showFXButton);
versionInfo.setText("Build: " + juce::String(JAS_GIT_INFO) + " (" + JAS_BUILD_TIME + ")", juce::dontSendNotification); versionInfo.setText("Build: " + juce::String(JAS_GIT_INFO) + " (" + JAS_BUILD_TIME + ")", juce::dontSendNotification);
versionInfo.setJustificationType(juce::Justification::centredLeft);
addAndMakeVisible(versionInfo); addAndMakeVisible(versionInfo);
eqEnablementAttachment.sendInitialUpdate(); eqEnablementAttachment.sendInitialUpdate();
@ -439,18 +440,6 @@ void JustaSampleAudioProcessorEditor::paint(juce::Graphics& g)
g.setColour(theme.foreground); g.setColour(theme.foreground);
g.fillRect(footerBounds.toNearestInt()); g.fillRect(footerBounds.toNearestInt());
g.setColour(theme.slate.withAlpha(0.2f));
g.drawVerticalLine(int(std::round(showFXButton.getX() - scalei(1.f))), footerBounds.getY() + scalei(13.f), footerBounds.getBottom() - scalei(13.f));
bool fxEnabled = eqEnabled || reverbEnabled || distortionEnabled || chorusEnabled;
if (fxEnabled)
{
auto fxBounds = showFXButton.getBounds().toFloat();
auto indictatorBounds = fxBounds.removeFromTop(scalei(17.f)).removeFromRight(scalei(17.f)).translated(scalei(12.f), scalei(6.f));
g.setColour(theme.highlight);
g.fillEllipse(indictatorBounds);
}
auto sampleLoaded = bool(p.getSampleBuffer().getNumSamples()); auto sampleLoaded = bool(p.getSampleBuffer().getNumSamples());
if (pluginState.showFX) if (pluginState.showFX)
{ {
@ -705,16 +694,8 @@ void JustaSampleAudioProcessorEditor::resized()
footer.reduce(scalei(25.f), 0.f); footer.reduce(scalei(25.f), 0.f);
auto showFXButtonBounds = footer.removeFromRight(scalei(205.f)); preFXButton.setVisible(false);
showFXButton.setPadding(0.f, 0.f, scalei(19.f), scalei(19.f)); showFXButton.setVisible(false);
showFXButton.setBounds(showFXButtonBounds.toNearestInt());
footer.removeFromRight(scalei(30.f));
auto preFXButtonBounds = footer.removeFromRight(scalei(100.f)).reduced(0.f, scalei(11.f));
preFXButton.setBounds(preFXButtonBounds.toNearestInt());
preFXButton.setBorder(scalef(2.5f), scalef(6.f));
preFXButton.setPadding(scalef(11.f));
versionInfo.setFont(getInter().withHeight(scalef(28.f))); versionInfo.setFont(getInter().withHeight(scalef(28.f)));
versionInfo.setBounds(footer.reduced(0.f, scalei(18.f)).toNearestInt()); versionInfo.setBounds(footer.reduced(0.f, scalei(18.f)).toNearestInt());

3312
output Normal file

File diff suppressed because it is too large Load diff