diff --git a/include/engine/Port.hpp b/include/engine/Port.hpp index 957e680..044a39e 100644 --- a/include/engine/Port.hpp +++ b/include/engine/Port.hpp @@ -124,6 +124,7 @@ struct Port { /** Returns a pointer to the array of voltages beginning with firstChannel. The pointer can be used for reading and writing. */ + // TODO convert to const float* for zero-latency cable stuff and fix all plugins after float* getVoltages(int firstChannel = 0) { return &cvoltages[firstChannel]; } diff --git a/src/override/Engine.cpp b/src/override/Engine.cpp index d1f1b1e..8f52e5f 100644 --- a/src/override/Engine.cpp +++ b/src/override/Engine.cpp @@ -203,6 +203,11 @@ static void Engine_stepFrame(Engine* that) { // Step each module for (Module* module : internal->modules) { module->doProcess(processArgs); + // FIXME remove this section below after all modules can use zero-latency cable stuff + for (Output& output : module->outputs) { + for (Cable* cable : output.cables) + Cable_step(cable); + } } ++internal->frame;