mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +00:00
LibAudio: Put all classes in the Audio namespace and remove leading A
This commit is contained in:
parent
0bce5f7403
commit
92f77864de
20 changed files with 127 additions and 103 deletions
|
@ -30,17 +30,19 @@
|
|||
#include <AudioServer/AudioServerEndpoint.h>
|
||||
#include <LibIPC/IServerConnection.h>
|
||||
|
||||
class ABuffer;
|
||||
namespace Audio {
|
||||
|
||||
class AClientConnection : public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
|
||||
class Buffer;
|
||||
|
||||
class ClientConnection : public IPC::ServerConnection<AudioClientEndpoint, AudioServerEndpoint>
|
||||
, public AudioClientEndpoint {
|
||||
C_OBJECT(AClientConnection)
|
||||
C_OBJECT(ClientConnection)
|
||||
public:
|
||||
AClientConnection();
|
||||
ClientConnection();
|
||||
|
||||
virtual void handshake() override;
|
||||
void enqueue(const ABuffer&);
|
||||
bool try_enqueue(const ABuffer&);
|
||||
void enqueue(const Buffer&);
|
||||
bool try_enqueue(const Buffer&);
|
||||
|
||||
bool get_muted();
|
||||
void set_muted(bool);
|
||||
|
@ -62,3 +64,5 @@ private:
|
|||
virtual void handle(const AudioClient::FinishedPlayingBuffer&) override;
|
||||
virtual void handle(const AudioClient::MutedStateChanged&) override;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue