mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
LibAudio: Expose blocking realtime enqueue to audio clients
This is just a delegate of the same function found in the shared queue itself.
This commit is contained in:
parent
836f28392d
commit
cc9192a1e7
2 changed files with 7 additions and 0 deletions
|
@ -45,6 +45,7 @@ public:
|
|||
|
||||
// Returns immediately with the appropriate status if the buffer is full; use in conjunction with remaining_buffers to get low latency.
|
||||
ErrorOr<void, AudioQueue::QueueStatus> realtime_enqueue(Array<Sample, AUDIO_BUFFER_SIZE> samples);
|
||||
ErrorOr<void> blocking_realtime_enqueue(Array<Sample, AUDIO_BUFFER_SIZE> samples, Function<void()> wait_function);
|
||||
|
||||
// This information can be deducted from the shared audio buffer.
|
||||
unsigned total_played_samples() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue