1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

AudioServer: Let ASMixer notify ASClientConnection about finished buffers.

Instead of posting a message directly from ASMixer, notify the client via
ASClientConnection::did_finish_playing_buffer().
This commit is contained in:
Andreas Kling 2019-07-27 21:15:33 +02:00
parent dbebf10131
commit 6a0319697c
3 changed files with 17 additions and 13 deletions

View file

@ -13,6 +13,8 @@ public:
void send_greeting() override;
bool handle_message(const ASAPI_ClientMessage&, const ByteBuffer&& = {}) override;
void did_finish_playing_buffer(Badge<ASMixer>, int buffer_id);
private:
ASMixer& m_mixer;
};