AudioServer: Use Vector::append(Vector&&) for pending mix buffers.

Vector::append(Vector&&) is a simple pointer transfer when appending to an
empty Vector. :^)
This commit is contained in:
Andreas Kling 2019-07-17 20:54:09 +02:00
parent 9c8dd836fc
commit 4adbddeb36

View file

@ -33,9 +33,7 @@ void ASMixer::mix()
for (;;) {
{
CLocker lock(m_lock);
for (const auto& buf : m_pending_mixing)
active_mix_buffers.append(buf);
m_pending_mixing.clear();
active_mix_buffers.append(move(m_pending_mixing));
}
// ### use a wakeup of some kind rather than this garbage