diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-01-14 01:14:24 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-01-22 01:13:42 +0330 |
commit | 8a92573732fca3ec43ea3ab4cbecda500dfd9a8d (patch) | |
tree | 627aa526a0fc0bece734b81edefc1fd210e6d2cb /Userland/Libraries/LibAudio/Loader.cpp | |
parent | 4f48a086b75721f246fa496bcfc07bd2b45bae0a (diff) | |
download | serenity-8a92573732fca3ec43ea3ab4cbecda500dfd9a8d.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibAudio/Loader.cpp')
-rw-r--r-- | Userland/Libraries/LibAudio/Loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibAudio/Loader.cpp b/Userland/Libraries/LibAudio/Loader.cpp index 57d7dd4789..e4cdc6223e 100644 --- a/Userland/Libraries/LibAudio/Loader.cpp +++ b/Userland/Libraries/LibAudio/Loader.cpp @@ -30,7 +30,7 @@ Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::try_create(StringView p return LoaderError { "No loader plugin available" }; } -Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::try_create(ByteBuffer const& buffer) +Result<NonnullOwnPtr<LoaderPlugin>, LoaderError> Loader::try_create(Bytes& buffer) { NonnullOwnPtr<LoaderPlugin> plugin = adopt_own(*new WavLoaderPlugin(buffer)); if (auto initstate = plugin->initialize(); !initstate.is_error()) |