mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:17:36 +00:00
AudioServer: Stop re-creating the device stream buffer
The buffer provided to `OutputMemoryStream` was made a private class member. This is because there is no reason to re-create it in every iteration. Also, the logic becomes more symmetric with `m_zero_filled_buffer` which is already a class member.
This commit is contained in:
parent
b22c840963
commit
457fda6354
2 changed files with 2 additions and 2 deletions
|
@ -133,6 +133,7 @@ private:
|
|||
NonnullRefPtr<Core::ConfigFile> m_config;
|
||||
RefPtr<Core::Timer> m_config_write_timer;
|
||||
|
||||
Array<u8, HARDWARE_BUFFER_SIZE_BYTES> m_stream_buffer;
|
||||
Array<u8, HARDWARE_BUFFER_SIZE_BYTES> const m_zero_filled_buffer {};
|
||||
|
||||
void mix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue