Studio: std::move studio instance in addStudioSend()

Avoids an unnecessary atomic reference count increment and decrement
This commit is contained in:
Lioncash 2019-09-10 20:23:26 -04:00
parent 04fbc328e9
commit b92674e127
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Studio::Studio(Engine& engine, bool mainOut) : m_engine(engine), m_master(engine
}
void Studio::addStudioSend(ObjToken<Studio> studio, float dry, float auxA, float auxB) {
m_studiosOut.emplace_back(studio, dry, auxA, auxB);
m_studiosOut.emplace_back(std::move(studio), dry, auxA, auxB);
/* Cyclic check */
assert(!_cyclicCheck(this));