Testing ARA Code

Is anybody aware of a way to add the ARA sdk to juce console apps?
I want to add unit tests to some of these classes.

There is no clean way to do this.

In CMake you can probably hack it together by adding juce_audio_plugin_client/juce_audio_plugin_client_ARA.cpp to your target sources, and adding the following definitions to the console project.

JucePlugin_Enable_ARA=1
JucePlugin_Name=""
JucePlugin_Build_VST3=1
JucePlugin_IsSynth=0
JucePlugin_ManufacturerCode=0
JucePlugin_PluginCode=0
JucePlugin_ProducesMidiOutput=0
JucePlugin_WantsMidiInput=0
JucePlugin_EditorRequiresKeyboardFocus=0

And of course you must also call the juce_set_ara_sdk_path() CMake function before using juce_add_console_app, or you must use the -DJUCE_GLOBAL_ARA_SDK_PATH Cmake command line argument.

Also, this approach could break in future JUCE releases.

1 Like