1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-30 18:22:44 +00:00
serenity/Libraries/LibAudio/AWavLoader.h
Robin Burchell 7b75632e5c 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).
2019-07-14 15:29:59 +02:00

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;
};