mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +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:
parent
3792883219
commit
7b75632e5c
Notes:
sideshowbarker
2024-07-19 13:16:13 +09:00
Author: https://github.com/rburchell
Commit: 7b75632e5c
Pull-request: https://github.com/SerenityOS/serenity/pull/304
Reviewed-by: https://github.com/awesomekling ✅
3 changed files with 116 additions and 88 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue