1
Fork 0
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:
Karol Kosek 2021-07-22 15:41:18 +02:00 committed by Andreas Kling
parent 01e1e2c2c5
commit 8c2be4b3dc
2 changed files with 3 additions and 2 deletions

View file

@ -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));
}