serenity/Meta
kleines Filmröllchen 96d02a3e75 LibAudio: New error propagation API in Loader and Buffer
Previously, a libc-like out-of-line error information was used in the
loader and its plugins. Now, all functions that may fail to do their job
return some sort of Result. The universally-used error type ist the new
LoaderError, which can contain information about the general error
category (such as file format, I/O, unimplemented features), an error
description, and location information, such as file index or sample
index.

Additionally, the loader plugins try to do as little work as possible in
their constructors. Right after being constructed, a user should call
initialize() and check the errors returned from there. (This is done
transparently by Loader itself.) If a constructor caused an error, the
call to initialize should check and return it immediately.

This opportunity was used to rework a lot of the internal error
propagation in both loader classes, especially FlacLoader. Therefore, a
couple of other refactorings may have sneaked in as well.

The adoption of LibAudio users is minimal. Piano's adoption is not
important, as the code will receive major refactoring in the near future
anyways. SoundPlayer's adoption is also less important, as changes to
refactor it are in the works as well. aplay's adoption is the best and
may serve as an example for other users. It also includes new buffering
behavior.

Buffer also gets some attention, making it OOM-safe and thereby also
propagating its errors to the user.
2021-11-28 13:33:51 -08:00
..
Azure Meta: Run IPC magic number linter during CI and pre-commit 2021-11-05 00:17:01 +03:30
CMake Kernel: Add AC97_DEBUG macro 2021-11-28 19:26:22 +02:00
HeaderCheck HeaderCheck: It checks some of your headers 2021-10-20 09:20:18 +01:00
Lagom LibAudio: New error propagation API in Loader and Buffer 2021-11-28 13:33:51 -08:00
ShellCompletions/zsh
Websites Websites: Import serenityos.org website changes 2021-10-30 17:42:26 +02:00
bochsrc
build-image-extlinux.sh
build-image-grub.sh
build-image-qemu.sh Meta: Assume and find GNU du 2021-08-18 10:59:50 +02:00
build-manpages-website.sh man.serenityos.org: Make section titles more descriptive 2021-10-22 19:49:28 +03:00
build-root-filesystem.sh Meta: Copy libstdc++ into the disk image 2021-11-28 09:38:57 -08:00
check-ak-test-files.sh Meta: Remove unnecessary -i 2021-11-02 12:23:30 +01:00
check-debug-flags.sh Meta: Use grep -E/F, not grep -P 2021-11-02 12:23:30 +01:00
check-markdown.sh Meta: Run check-markdown as part of 'Azure Linux NoFuzz' 2021-10-10 15:18:55 -07:00
check-newlines-at-eof.py Tests: Add regression tests for the LibCpp preprocessor 2021-08-14 12:40:55 +02:00
check-style.py Meta: Reimplement license checker in python 2021-10-27 11:35:47 -07:00
check-symbols.sh
check-syscall-lists.sh Meta: Use grep -E/F, not grep -P 2021-11-02 12:23:30 +01:00
convert-markdown-links.lua man.serenityos.org: Fix links to man(1), avoid unnecessary shells 2021-10-22 19:49:28 +03:00
debug-kernel.sh Meta: Set SERENITY_ARCH if it is not set in debug-kernel.sh 2021-09-17 09:16:40 +00:00
export-argsparser-manpages.sh Meta: Check auto-generated manpages for completeness on CI 2021-11-01 21:12:58 +01:00
extlinux.conf Kernel: Separate framebuffers from bootmode 2021-10-25 23:38:28 +02:00
generate-embedded-resource-assembly.sh
generate-libwasm-spec-test.py Meta: Implement support for the "unlinkable" Wasm spectest assertion 2021-08-30 22:47:02 +02:00
generate-libwasm-spec-test.sh
grub-ebr.cfg Kernel: Separate framebuffers from bootmode 2021-10-25 23:38:28 +02:00
grub-gpt.cfg Kernel: Separate framebuffers from bootmode 2021-10-25 23:38:28 +02:00
grub-mbr.cfg Kernel: Separate framebuffers from bootmode 2021-10-25 23:38:28 +02:00
install-ports-tree.sh
lint-ci.sh Meta: Remove useless lint-ipc-ids.sh script 2021-11-05 00:17:01 +03:30
lint-clang-format.sh Meta: Adhere to latest ScriptCheck standards (SC2268) 2021-11-02 12:23:30 +01:00
lint-commit.sh Meta: Allow overlong 'fixup!' commit titles in pre-commit hook 2021-11-28 11:49:13 -08:00
lint-executable-resources.sh Meta: Add special case for macOS 2021-11-02 12:23:30 +01:00
lint-keymaps.py
lint-missing-resources.sh Meta: Use grep -E/F, not grep -P 2021-11-02 12:23:30 +01:00
lint-ports.py Meta: Update lint-ports.py for the SerenityPorts move 2021-08-30 20:49:37 +02:00
lint-prettier.sh
lint-python.sh
lint-shell-scripts.sh Meta: Add a check to ensure grep -P stays gone 2021-11-02 12:23:30 +01:00
new-project.sh Meta: Add new-project.sh :^) 2021-08-13 21:12:17 +04:30
refresh-serenity-qtcreator.sh Meta: Make QtCreator aware of all CMake files 2021-09-15 20:21:19 +00:00
run.sh Meta: Increase PulseAudio timer period to 2ms 2021-11-23 10:35:00 +01:00
screenshot-000ccc0.png
screenshot-0f85753.png
screenshot-8ea4375.png
screenshot-1133aca.png
screenshot-9145a72.png
screenshot-23263aa.png
screenshot-191112e.png
screenshot-b5521e1.png
screenshot-b36968c.png README+Meta: Update the screenshot :^) 2021-08-18 14:27:37 +02:00
screenshot-cdb82f6.png
screenshot-d727005.png
screenshot-ef9fbef.png
screenshot-f8fc892.png
serenity.sh Meta: Don't check for toolchain if serenity.sh target is lagom 2021-11-02 11:09:05 +01:00
serenity_gdb.py Meta: Update the gdb script for the new RefPtr layout 2021-11-12 13:01:59 +00:00
text-to-cpp-string.sh
tweet-commits.js