Skip to content

Commit

Permalink
Use Interp backend in faustgen.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Dec 25, 2024
1 parent 3c39542 commit 1485fca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions compiler/generator/cpp/cpp_code_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ map<string, bool> CPPInstVisitor::gFunctionSymbolTable;

dsp_factory_base* CPPCodeContainer::produceFactory()
{
stringstream str;
stacktrace(str, 50);
std::cerr << str.str() << std::endl;
std::cout << str.str() << std::endl;

std::cerr << "fOut " << fOut << std::endl;
std::cout << "fOut " << fOut << std::endl;
if (fOut) {
std::cerr << " typeid(*fOut).name() " << typeid(*fOut).name() << std::endl;
std::cout << " typeid(*fOut).name() " << typeid(*fOut).name() << std::endl;
std::cerr << "typeid(*fOut).name() " << typeid(*fOut).name() << std::endl;
std::cout << "typeid(*fOut).name() " << typeid(*fOut).name() << std::endl;
}

stringstream str;
stacktrace(str, 50);
std::cerr << str.str() << std::endl;
std::cout << str.str() << std::endl;

return new text_dsp_factory_aux(
fKlassName, "", "",
((dynamic_cast<ostringstream*>(fOut)) ? dynamic_cast<ostringstream*>(fOut)->str() : ""),
Expand Down
4 changes: 2 additions & 2 deletions compiler/global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2668,8 +2668,8 @@ void callFun(threaded_fun fun, void* arg)
fun(arg);
#else
/*
std::thread t(fun, arg);
t.join();
std::thread tr(fun, arg);
tr.join();
*/
fun(arg);
#endif
Expand Down
2 changes: 1 addition & 1 deletion embedded/faustgen/src/faustgen_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#define FAUSTGEN_VERSION "1.73"

// Possibly compile with Interp backend
//#define INTERP_BACKEND
#define INTERP_BACKEND

#ifdef INTERP_BACKEND
#include <faust/dsp/interpreter-dsp.h>
Expand Down

0 comments on commit 1485fca

Please sign in to comment.