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

We don't need to do any IPC postprocessing in LibAudio (yet.) This is the mechanism used by LibGUI to do repaint coalescing etc.
20 lines
486 B
C++
20 lines
486 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&);
|
|
|
|
virtual void postprocess_bundles(Vector<IncomingMessageBundle>&) override {}
|
|
|
|
int get_main_mix_volume();
|
|
void set_main_mix_volume(int);
|
|
};
|