| 99 | } |
| 100 | |
| 101 | void NodeBase::prepare(PrepareSpecs specs) |
| 102 | { |
| 103 | if(lastSpecs.numChannels == 0) |
| 104 | setBypassed(isBypassed()); |
| 105 | |
| 106 | lastSpecs = specs; |
| 107 | cpuUsage = 0.0; |
| 108 | |
| 109 | for (auto p : parameters) |
| 110 | { |
| 111 | if(p == nullptr) |
| 112 | continue; |
| 113 | |
| 114 | if (p->isModulated()) |
| 115 | continue; |
| 116 | |
| 117 | auto v = p->getValue(); |
| 118 | p->setValueAsync(v); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | DspNetwork* NodeBase::getRootNetwork() const |
| 123 | { |
no test coverage detected