1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

LibAudio: Convert FlacLoader to use new Core::Stream APIs :^)

For this change to work "easily", Loader can't take const ByteBuffer's
anymore, which is fine for now.
This commit is contained in:
kleines Filmröllchen 2022-01-14 01:14:24 +01:00 committed by Ali Mohammad Pur
parent 4f48a086b7
commit 8a92573732
7 changed files with 113 additions and 175 deletions

View file

@ -7,10 +7,10 @@
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/MemoryStream.h>
#include <AK/OwnPtr.h>
#include <AK/RefPtr.h>
#include <AK/Span.h>
#include <AK/Stream.h>
#include <AK/String.h>
#include <AK/StringView.h>
@ -34,7 +34,7 @@ class Buffer;
class WavLoaderPlugin : public LoaderPlugin {
public:
explicit WavLoaderPlugin(StringView path);
explicit WavLoaderPlugin(const ByteBuffer& buffer);
explicit WavLoaderPlugin(const Bytes& buffer);
virtual MaybeLoaderError initialize() override;