mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 12:18:56 +00:00
LibAudio: Implement loaded_samples() in the FLAC Loader
This makes aplay show current playback position.
This commit is contained in:
parent
01e1e2c2c5
commit
8c2be4b3dc
Notes:
sideshowbarker
2024-07-19 17:23:31 +09:00
Author: https://github.com/krkk
Commit: 8c2be4b3dc
Pull-request: https://github.com/SerenityOS/serenity/pull/8929
Reviewed-by: https://github.com/kleinesfilmroellchen
2 changed files with 3 additions and 2 deletions
|
@ -235,6 +235,7 @@ RefPtr<Buffer> FlacLoaderPlugin::get_more_samples([[maybe_unused]] size_t max_by
|
|||
--samples_to_read;
|
||||
}
|
||||
|
||||
m_loaded_samples += samples.size();
|
||||
return Buffer::create_with_samples(move(samples));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue