Files
ladybird/Libraries/LibAudio/AClientConnection.h
Andreas Kling be31e2232c 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.
2019-07-28 21:34:47 +02:00

16 lines
337 B
C++

#pragma once
#include <LibAudio/ASAPI.h>
#include <LibCore/CoreIPCClient.h>
class ABuffer;
class AClientConnection : public IPC::Client::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage> {
C_OBJECT(AClientConnection)
public:
AClientConnection();
virtual void handshake() override;
void enqueue(const ABuffer&);
};