mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +00:00
LibAudio: Remove an unnecessary copy of sample buffers before sending them.
I missed this earlier, but *now* we're actually using the same SharedBuffer all the way from client-side WAV reading to server-side mixing. :^)
This commit is contained in:
parent
b98c77229d
commit
de3d1f2275
2 changed files with 3 additions and 10 deletions
|
@ -68,6 +68,7 @@ public:
|
|||
const void* data() const { return m_buffer->data(); }
|
||||
int size_in_bytes() const { return m_buffer->size(); }
|
||||
int shared_buffer_id() const { return m_buffer->shared_buffer_id(); }
|
||||
SharedBuffer& shared_buffer() { return *m_buffer; }
|
||||
|
||||
private:
|
||||
explicit ABuffer(Vector<ASample>&& samples)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue