AudioServer: Queue more than 4k bytes per write

Before this I was writing audio data to kernel in ~20 ms chuncks. This
feels like way too many syscalls, so now we allow sending upto 1 second
per syscall :D
This commit is contained in:
2026-08-17 04:44:15 +03:00
parent 7aa8eb1778
commit b6f922895f
2 changed files with 4 additions and 3 deletions
@@ -68,7 +68,6 @@ private:
size_t m_current_audio_device { 0 };
size_t m_samples_sent { 0 };
BAN::Array<uint8_t, 4 * 1024> m_send_buffer;
BAN::CircularQueue<sample_t, 64 * 1024> m_samples;
BAN::HashMap<int, ClientInfo> m_audio_buffers;