mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:28:11 +00:00
21 lines
474 B
C++
21 lines
474 B
C++
#pragma once
|
|
|
|
#include <AudioServer/AudioServerEndpoint.h>
|
|
#include <LibCore/CoreIPCClient.h>
|
|
|
|
class ABuffer;
|
|
|
|
class AClientConnection : public IPC::Client::ConnectionNG<AudioServerEndpoint> {
|
|
C_OBJECT(AClientConnection)
|
|
public:
|
|
AClientConnection();
|
|
|
|
virtual void handshake() override;
|
|
void enqueue(const ABuffer&);
|
|
bool try_enqueue(const ABuffer&);
|
|
|
|
int get_main_mix_volume();
|
|
void set_main_mix_volume(int);
|
|
|
|
int get_remaining_samples();
|
|
};
|