File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/ossia/dataflow/nodes/faust Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 77#include < libremidi/message.hpp>
88#include < libremidi/ump_events.hpp>
99
10+ #include < iostream>
11+
1012#include < faust/dsp/poly-llvm-dsp.h>
1113
1214namespace ossia ::nodes
@@ -617,6 +619,20 @@ struct custom_dsp_poly_factory : public dsp_factory
617619
618620 virtual ~custom_dsp_poly_factory () = default ;
619621
622+ virtual std::string getJSON ()
623+ {
624+ // Needed because API was not updated on the exact
625+ // commit where this was introduced, so there's multiple
626+ // 2.83.10 commits which don't have this method, and multiple
627+ // which do, thus version check is not enough
628+ return [](auto ptr) -> std::string {
629+ if constexpr (requires { ptr->getJSON (); })
630+ return ptr->getJSON ();
631+ else
632+ return {};
633+ }(fProcessFactory );
634+ }
635+
620636 virtual std::string getName () { return fProcessFactory ->getName (); }
621637 virtual std::string getSHAKey () { return fProcessFactory ->getSHAKey (); }
622638 virtual std::string getDSPCode () { return fProcessFactory ->getDSPCode (); }
You can’t perform that action at this time.
0 commit comments