LibMedia: Remove LibMedia::Audio::LoaderError

This class was used as little more than a wrapper around `Error`,
so we might as well use `Error` in the first place.
This commit is contained in:
Jonne Ransijn 2024-11-21 20:06:00 +01:00 committed by Jelle Raaijmakers
parent f4b0d17e4b
commit 4d38e04e48
Notes: github-actions[bot] 2024-11-22 11:44:49 +00:00
7 changed files with 52 additions and 149 deletions

View file

@ -32,7 +32,7 @@ ErrorOr<FixedArray<Audio::Sample>> AudioCodecPlugin::read_samples_from_loader(Au
{
auto buffer_or_error = loader.get_more_samples(samples_to_load);
if (buffer_or_error.is_error()) {
dbgln("Error while loading samples: {}", buffer_or_error.error().description);
dbgln("Error while loading samples: {}", buffer_or_error.error());
return Error::from_string_literal("Error while loading samples");
}