mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibAudio: Add ClientConnection::async_enqueue()
async_enqueue() is a wrapper over the async_enqueue_buffer() call to AudioServer. This allows users to asyncronously enqueue audio samples, when the program requires non-blocking audio streaming. This also makes ClientConnection use east-const everywhere.
This commit is contained in:
parent
c8ced9f11d
commit
9d00db618d
Notes:
sideshowbarker
2024-07-18 10:21:57 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 9d00db618d
Pull-request: https://github.com/SerenityOS/serenity/pull/8456
2 changed files with 10 additions and 4 deletions
|
@ -21,8 +21,9 @@ class ClientConnection final
|
|||
public:
|
||||
ClientConnection();
|
||||
|
||||
void enqueue(const Buffer&);
|
||||
bool try_enqueue(const Buffer&);
|
||||
void enqueue(Buffer const&);
|
||||
bool try_enqueue(Buffer const&);
|
||||
void async_enqueue(Buffer const&);
|
||||
|
||||
Function<void(i32 buffer_id)> on_finish_playing_buffer;
|
||||
Function<void(bool muted)> on_muted_state_change;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue