1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:57:44 +00:00

AK/LibAudio: Add stream read operators to AK::BufferStream, and use it in AWavLoader

At the same time, we allow chaining of streaming operators, and add a
way to check for partial reads (also used in WAV parsing).
This commit is contained in:
Robin Burchell 2019-07-14 00:28:30 +02:00 committed by Andreas Kling
parent 3792883219
commit 7b75632e5c
3 changed files with 116 additions and 88 deletions

View file

@ -9,6 +9,6 @@ public:
RefPtr<AWavFile> load_wav(const StringView& path);
const char* error_string() { return m_error_string.characters(); }
private:
RefPtr<AWavFile> parse_wav(const ByteBuffer& buffer);
RefPtr<AWavFile> parse_wav(ByteBuffer& buffer);
String m_error_string;
};