mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
FlacLoader: Use seektable for performing seek operations
As a fallback, we perform primitive seek if there's no seektable. Co-authored-by: kleines Filmröllchen <filmroellchen@serenityos.org>
This commit is contained in:
parent
346696ffbb
commit
034c57f1f9
2 changed files with 48 additions and 4 deletions
|
@ -52,7 +52,7 @@ public:
|
|||
virtual LoaderSamples get_more_samples(size_t max_bytes_to_read_from_input = 128 * KiB) override;
|
||||
|
||||
virtual MaybeLoaderError reset() override;
|
||||
virtual MaybeLoaderError seek(const int position) override;
|
||||
virtual MaybeLoaderError seek(int sample_index) override;
|
||||
|
||||
virtual int loaded_samples() override { return static_cast<int>(m_loaded_samples); }
|
||||
virtual int total_samples() override { return static_cast<int>(m_total_samples); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue