mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00

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.
16 lines
380 B
C++
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&);
|
|
};
|