1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +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:
Andreas Kling 2019-07-27 21:28:45 +02:00
parent b98c77229d
commit de3d1f2275
2 changed files with 3 additions and 10 deletions

View file

@ -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)