#pragma once #include #include #include class ABuffer; class ByteBuffer; // Parses a WAV file and produces an ABuffer instance from it class AWavLoader { public: RefPtr load_wav(const StringView& path); const char* error_string() { return m_error_string.characters(); } private: RefPtr parse_wav(ByteBuffer& buffer); String m_error_string; };