1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:27:45 +00:00

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 (;;) { for (;;) {
{ {
CLocker lock(m_lock); CLocker lock(m_lock);
for (const auto& buf : m_pending_mixing) active_mix_buffers.append(move(m_pending_mixing));
active_mix_buffers.append(buf);
m_pending_mixing.clear();
} }
// ### use a wakeup of some kind rather than this garbage // ### use a wakeup of some kind rather than this garbage