forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AudioServer: Port to the new generated IPC mechanism
Fork the IPC Connection classes into Server:: and Client::ConnectionNG. The new IPC messages are serialized very snugly instead of using the same generic data structure for all messages. Remove ASAPI.h since we now generate all of it from AudioServer.ipc :^)
- Loading branch information
1 parent
3519b6c
commit 8e684f0
Showing
14 changed files
with
319 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ Toolchain/Local | |
.vscode | ||
compile_commands.json | ||
.clang_complete | ||
*Endpoint.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
#pragma once | ||
|
||
#include <LibAudio/ASAPI.h> | ||
#include <AudioServer/AudioServerEndpoint.h> | ||
#include <LibCore/CoreIPCClient.h> | ||
|
||
class ABuffer; | ||
|
||
class AClientConnection : public IPC::Client::Connection<ASAPI_ServerMessage, ASAPI_ClientMessage> { | ||
class AClientConnection : public IPC::Client::ConnectionNG<AudioServerEndpoint> { | ||
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); | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.