mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +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
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