Skip to content

Commit

Permalink
Upgrade CJE; Get menu support. (#6956)
Browse files Browse the repository at this point in the history
* Upgrade CJE; Get menu support.

Upgrade clap juce exptensions. Get host menu support in BWS 5 beta.

Addresses #6930

* - Also turn on the custom factory extension but implement it as nullptr
  • Loading branch information
baconpaul authored Apr 18, 2023
1 parent 0649504 commit 8ef88f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/surge-xt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ juce_add_plugin(${PROJECT_NAME}
if(SURGE_BUILD_CLAP)
clap_juce_extensions_plugin(TARGET surge-xt
CLAP_ID "org.surge-synth-team.surge-xt"
CLAP_SUPPORTS_CUSTOM_FACTORY 1
CLAP_FEATURES "instrument" "synthesizer" "hybrid" "free and open source")
endif()

Expand Down
7 changes: 7 additions & 0 deletions src/surge-xt/SurgeSynthProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,3 +1023,10 @@ void SurgeSynthProcessor::reset() { blockPos = 0; }
//==============================================================================
// This creates new instances of the plugin..
juce::AudioProcessor *JUCE_CALLTYPE createPluginFilter() { return new SurgeSynthProcessor(); }

void *JUCE_CALLTYPE clapJuceExtensionCustomFactory(const char *)
{
// ToDo: Implement preset discovery here
// See #6930
return nullptr;
}

0 comments on commit 8ef88f3

Please sign in to comment.