mirror of
https://codeberg.org/armin/justasample.git
synced 2026-09-01 04:10:48 +02:00
fix compilation issues
This commit is contained in:
parent
9dcab5b48e
commit
c06aa7b04f
4 changed files with 3335 additions and 25 deletions
6
Assets/Icons/IconPingPong.svg
Normal file
6
Assets/Icons/IconPingPong.svg
Normal 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 |
17
Makefile
17
Makefile
|
|
@ -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
|
||||
|
||||
# ---------- 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
|
||||
|
||||
|
|
@ -32,7 +32,11 @@ build-au: configure
|
|||
build-all: configure
|
||||
cmake --build $(BUILD_DIR) --target JustASample_All -j$(NPROC)
|
||||
|
||||
FL_CACHE := $(HOME)/Library/Caches/com.image-line.flstudio
|
||||
|
||||
install: install-vst3 install-au
|
||||
@rm -rf "$(FL_CACHE)"
|
||||
@echo "Cleared FL Studio plugin cache"
|
||||
|
||||
install-vst3: build
|
||||
@mkdir -p "$(VST3_DST)"
|
||||
|
|
@ -50,10 +54,16 @@ install-all: build-all install-vst3 install-au
|
|||
|
||||
uninstall:
|
||||
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:
|
||||
rm -rf $(BUILD_DIR)
|
||||
@rm -rf "$(FL_CACHE)"
|
||||
|
||||
clear-cache:
|
||||
@rm -rf "$(FL_CACHE)"
|
||||
@echo "Cleared FL Studio plugin cache"
|
||||
|
||||
help:
|
||||
@echo "Targets:"
|
||||
|
|
@ -66,5 +76,6 @@ help:
|
|||
@echo " make install-au - install AU only"
|
||||
@echo " make install-all - install all formats"
|
||||
@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"
|
||||
|
|
|
|||
|
|
@ -294,6 +294,7 @@ JustaSampleAudioProcessorEditor::JustaSampleAudioProcessorEditor(JustaSampleAudi
|
|||
addAndMakeVisible(showFXButton);
|
||||
|
||||
versionInfo.setText("Build: " + juce::String(JAS_GIT_INFO) + " (" + JAS_BUILD_TIME + ")", juce::dontSendNotification);
|
||||
versionInfo.setJustificationType(juce::Justification::centredLeft);
|
||||
addAndMakeVisible(versionInfo);
|
||||
|
||||
eqEnablementAttachment.sendInitialUpdate();
|
||||
|
|
@ -439,18 +440,6 @@ void JustaSampleAudioProcessorEditor::paint(juce::Graphics& g)
|
|||
g.setColour(theme.foreground);
|
||||
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());
|
||||
if (pluginState.showFX)
|
||||
{
|
||||
|
|
@ -705,16 +694,8 @@ void JustaSampleAudioProcessorEditor::resized()
|
|||
|
||||
footer.reduce(scalei(25.f), 0.f);
|
||||
|
||||
auto showFXButtonBounds = footer.removeFromRight(scalei(205.f));
|
||||
showFXButton.setPadding(0.f, 0.f, scalei(19.f), scalei(19.f));
|
||||
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));
|
||||
preFXButton.setVisible(false);
|
||||
showFXButton.setVisible(false);
|
||||
|
||||
versionInfo.setFont(getInter().withHeight(scalef(28.f)));
|
||||
versionInfo.setBounds(footer.reduced(0.f, scalei(18.f)).toNearestInt());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue