Browse Source

Fix name collision when there's more than one Faust processor.

builtin-nodes
Ben Niemann 3 years ago
parent
commit
e00ffa5d96
  1. 1
      bin/build-faust-processor
  2. 2
      noisicaa/audioproc/engine/processor_faust.cpp.tmpl

1
bin/build-faust-processor

@ -13,6 +13,7 @@ BASE=$(basename ${SRC%.dsp})
LD_LIBRARY_PATH=${VIRTUAL_ENV}/lib ${VIRTUAL_ENV}/bin/faust \
--import-dir ${VIRTUAL_ENV}/share/faustlibraries/ \
--language cpp \
--class-name Processor${CLASSNAME}DSP \
--super-class-name noisicaa::FaustDSP \
-a noisicaa/audioproc/engine/processor_faust.cpp.tmpl \
-o ${DESTDIR}/${BASE}.cpp.tmp \

2
noisicaa/audioproc/engine/processor_faust.cpp.tmpl

@ -34,7 +34,7 @@ Processor<<className>>::Processor<<className>>(
: ProcessorFaust(realm_name, node_id, host_system, desc) {}
FaustDSP* Processor<<className>>::create_dsp() {
return new ::mydsp();
return new ::Processor<<className>>DSP();
}
}

Loading…
Cancel
Save