MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / Engine_orderModules

Function Engine_orderModules

src/override/Engine.cpp:411–428  ·  view source on GitHub ↗

Order the modules so that they always read the most recent sample from their inputs */

Source from the content-addressed store, hash-verified

409/** Order the modules so that they always read the most recent sample from their inputs
410*/
411static void Engine_orderModules(Engine* that) {
412 Engine::Internal* internal = that->internal;
413
414 IdentityDictionary<int64_t> terminalModulesIDs;
415 Engine_storeTerminalModulesIDs(internal->terminalModules, terminalModulesIDs);
416
417 IdentityDictionary<Module*> touchedModules;
418 std::vector<Module*> orderedModules;
419 orderedModules.reserve(internal->modules.size());
420 for (Module* module : internal->modules)
421 Engine_orderModule(module, touchedModules, orderedModules, terminalModulesIDs);
422
423 Engine_assignOrderedModules(internal->modules, orderedModules);
424
425#if DEBUG_ORDERED_MODULES
426 Engine_debugOrderedModules(internal->modules);
427#endif
428}
429
430
431static void Engine_updateConnected(Engine* that) {

Callers 1

Engine_updateConnectedFunction · 0.85

Calls 6

Engine_orderModuleFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected