mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
AudioServer: Remove any pending mixer queues whose client disconnected
We were pumping the sound device full of silence even after the last audio client disconnected.
This commit is contained in:
parent
11d49aedd8
commit
823ee63095
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ void ASMixer::mix()
|
|||
continue;
|
||||
}
|
||||
|
||||
active_mix_queues.remove_all_matching([&](auto& entry) { return !entry->client(); });
|
||||
|
||||
ASample mixed_buffer[1024];
|
||||
auto mixed_buffer_length = (int)(sizeof(mixed_buffer) / sizeof(ASample));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue