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:
parent
3792883219
commit
7b75632e5c
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