mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
LibAudio+LibCore: Remove unnecessary IODeviceStreamReader.h
IODeviceStreamReader isn't pulling its weight. It's essentially a subset of InputFileStream with only one user (WavLoader). This refactors WavLoader to use InputFileStream instead.
This commit is contained in:
parent
06ea31d0d5
commit
3938b56577
3 changed files with 21 additions and 85 deletions
|
@ -33,14 +33,14 @@ public:
|
|||
WavLoaderPlugin(const StringView& path);
|
||||
WavLoaderPlugin(const ByteBuffer& buffer);
|
||||
|
||||
virtual bool sniff() override;
|
||||
virtual bool sniff() override { return valid; }
|
||||
|
||||
virtual bool has_error() override { return !m_error_string.is_null(); }
|
||||
virtual const char* error_string() override { return m_error_string.characters(); }
|
||||
|
||||
virtual RefPtr<Buffer> get_more_samples(size_t max_bytes_to_read_from_input = 128 * KiB) override;
|
||||
|
||||
virtual void reset() override;
|
||||
virtual void reset() override { return seek(0); }
|
||||
virtual void seek(const int position) override;
|
||||
|
||||
virtual int loaded_samples() override { return m_loaded_samples; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue