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:
parent
9c8dd836fc
commit
4adbddeb36
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue