mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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:
parent
9c8dd836fc
commit
4adbddeb36
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue