mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
AudioServer+LibAudio: Make mixing queue-based instead of buffer-based.
Each client connection now sets up an ASBufferQueue, which is basically a queue of ABuffers. This allows us to immediately start streaming the next pending buffer whenever our current buffer runs out of samples. This makes the majority of the skippiness go away for me. :^) Also get rid of the old PlayBuffer API, since we don't need it anymore.
This commit is contained in:
parent
66db6f4f92
commit
be31e2232c
7 changed files with 78 additions and 112 deletions
|
@ -11,6 +11,5 @@ public:
|
|||
AClientConnection();
|
||||
|
||||
virtual void handshake() override;
|
||||
void play(const ABuffer&, bool block);
|
||||
void enqueue(const ABuffer&);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue