tote-bag-labs / valentine

An open source compressor meant to pump and breathe
GNU General Public License v3.0
123 stars 5 forks source link

Enable JACK_JUCE=1 for standalone build #35

Open JoseDiazRohena opened 1 year ago

JoseDiazRohena commented 1 year ago

This would allow the use of jack to route audio in and out of standalone.

pspbar commented 4 months ago

I have edited

libs/JUCE/modules/juce_audio_devices/juce_audio_devices.h

and changed the line

#define JUCE_JACK 0

to

#define JUCE_JACK 1

then build it as per instructions, now, standalone valentine exposes inputs and outputs that qpwgraph, helvum, or carla, for example, can manage to make connections.

Tested in voidlinux with pipewire.

tank-trax commented 4 months ago

the easiest method would be in CMakeLists.txt under target_compile_definitions("${PROJECT_NAME}

to add

   JUCE_ALSA=1
   JUCE_JACK=1

as follows...

target_compile_definitions("${PROJECT_NAME}"
    PUBLIC
    # JUCE_WEB_BROWSER and JUCE_USE_CURL would be on by default, but you might not need them.
    JUCE_WEB_BROWSER=0  # If you remove this, add `NEEDS_WEB_BROWSER TRUE` to the `juce_add_plugin` call
    JUCE_USE_CURL=0     # If you remove this, add `NEEDS_CURL TRUE` to the `juce_add_plugin` call
    JUCE_VST3_CAN_REPLACE_VST2=0
    JUCE_ENABLE_GPL_MODE=1
    JUCE_DISPLAY_SPLASH_SCREEN=0
    JUCE_REPORT_APP_USAGE=0
    JUCE_MODAL_LOOPS_PERMITTED=1
    JUCE_ENABLE_LIVE_CONSTANT_EDITOR=0
    JUCE_ALSA=1
    JUCE_JACK=1
    )