mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibAudio: Added playback control features to audio server
LibAudio now supports pausing playback, clearing the buffer queue, retrieving the played samples since the last clear and retrieving the currently playing shared buffer id
This commit is contained in:
parent
e7ccbdbe30
commit
2f13517a1a
8 changed files with 109 additions and 9 deletions
|
@ -22,6 +22,9 @@ public:
|
|||
|
||||
RefPtr<ABuffer> get_more_samples(size_t max_bytes_to_read_from_input = 128 * KB);
|
||||
|
||||
void reset();
|
||||
void seek(const int position);
|
||||
|
||||
int loaded_samples() const { return m_loaded_samples; }
|
||||
int total_samples() const { return m_total_samples; }
|
||||
u32 sample_rate() const { return m_sample_rate; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue