mirror of
https://github.com/RGBCube/serenity
synced 2025-10-30 18:22:44 +00:00
At the same time, we allow chaining of streaming operators, and add a way to check for partial reads (also used in WAV parsing).
14 lines
299 B
C++
14 lines
299 B
C++
#pragma once
|
|
|
|
#include <AK/RefPtr.h>
|
|
|
|
class AWavFile;
|
|
|
|
class AWavLoader {
|
|
public:
|
|
RefPtr<AWavFile> load_wav(const StringView& path);
|
|
const char* error_string() { return m_error_string.characters(); }
|
|
private:
|
|
RefPtr<AWavFile> parse_wav(ByteBuffer& buffer);
|
|
String m_error_string;
|
|
};
|