complaining about these not being refs. does it help? who knows!
parent
d28e1837d4
commit
e36f2c110c
|
@ -269,7 +269,7 @@ void AudioEngine::buildQueue() {
|
|||
// keep track of what was there before
|
||||
std::unordered_set<Node*> prev;
|
||||
prev.reserve(queue.size() + 1);
|
||||
for (auto n : queue) prev.insert(n.get());
|
||||
for (auto& n : queue) prev.insert(n.get());
|
||||
|
||||
queue.clear();
|
||||
// stuff
|
||||
|
@ -284,11 +284,11 @@ void AudioEngine::buildQueue() {
|
|||
|
||||
while (!qCurrent->empty()) {
|
||||
// ... this could be made more efficient with some redundancy checking, but whatever
|
||||
for (auto n : *qCurrent) {
|
||||
for (auto& n : *qCurrent) {
|
||||
qf.push_front(n); // add to actual queue
|
||||
for (auto p1 : n->inputs) { // data types...
|
||||
for (auto p2 : p1.second) { // ports...
|
||||
for (auto p3 : p2.second->connections) { // connected ports!
|
||||
for (auto& p1 : n->inputs) { // data types...
|
||||
for (auto& p2 : p1.second) { // ports...
|
||||
for (auto& p3 : p2.second->connections) { // connected ports!
|
||||
auto pc = p3.lock();
|
||||
if (!pc) continue;
|
||||
auto pcn = pc->owner.lock();
|
||||
|
@ -310,7 +310,7 @@ void AudioEngine::buildQueue() {
|
|||
|
||||
// assemble final deduplicated queue
|
||||
std::unordered_set<Node*> dd;
|
||||
for (auto n : qf) {
|
||||
for (auto& n : qf) {
|
||||
if (dd.find(n.get()) == dd.end()) {
|
||||
queue.push_back(n);
|
||||
dd.insert(n.get());
|
||||
|
@ -508,7 +508,7 @@ void AudioEngine::nextTick() {
|
|||
}
|
||||
|
||||
auto& cpm = project->rootGraph->inputs[Port::Command];
|
||||
for (auto p_ : cpm) {
|
||||
for (auto& p_ : cpm) {
|
||||
auto* pt = static_cast<CommandPort*>(p_.second.get());
|
||||
//if (pt->passthroughTo.lock()->connections.empty()) continue; // port isn't hooked up to anything
|
||||
uint8_t idx = pt->index;
|
||||
|
|
Loading…
Reference in New Issue