1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00
serenity/Libraries/LibAudio/AClientConnection.h
Andreas Kling 7cabe6433e AudioServer: Add a buffer queue so we can buffer some sound.
The idea here is to keep a small number of sample buffers queued in the
AudioServer so we don't get caught without something to play.
2019-07-28 18:27:32 +02:00

16 lines
380 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 play(const ABuffer&, bool block);
void enqueue(const ABuffer&);
};