ladybird/Userland/Libraries
Nick Miller 23d5b99fbf LibAudio: Make Loader::seek() treat its input as a sample index
This fixes a bug where if you try to play a Wave file a second
time (or loop with `aplay -l`), the second time will be pure
noise.

The function `Audio::Loader::seek` is meant to seek to a specific
audio sample, e.g. seek(0) should go to the first audio sample.
However, WavLoader was interpreting seek(0) as the beginning
of the file or stream, which contains non-audio header data.

This fixes the bug by capturing the byte offset of the start of the
audio data, and offseting the raw file/stream seek by that amount.
2021-06-09 17:30:08 +04:30
..
LibArchive LibArchive: Move method implementations away from header 2021-05-17 18:14:05 +01:00
LibAudio LibAudio: Make Loader::seek() treat its input as a sample index 2021-06-09 17:30:08 +04:30
LibC LibC+AK: Remove our custom macros from <assert.h> 2021-06-08 17:29:57 +02:00
LibCards LibCards: Draw card stack background when the entire stack is moving 2021-06-04 23:48:25 +02:00
LibChess LibChess: Fixed PGN export bug (#7300) 2021-05-20 08:32:19 +02:00
LibCompress LibCompress: Discard GZip NAME & COMMENT optional strings 2021-05-18 08:09:21 +02:00
LibCore LibCore: Fix building LibCore on FreeBSD 2021-06-09 09:24:58 +02:00
LibCoreDump Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
LibCpp LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
LibCrypt Everywhere: Add a blank line after copyright header where missing 2021-05-15 00:27:09 +01:00
LibCrypto LibCrypto: Add hash methods to {Signed, Unsigned}BigInteger 2021-06-09 11:48:04 +01:00
LibDebug LibELF + LibDebug: Reduce allocations during symbolification 2021-05-31 14:09:11 +04:30
LibDesktop Userland: Mark subclasses of IPC::{Client,Server}Connection final 2021-05-23 09:53:55 +02:00
LibDiff AK+Everywhere: Consolidate String::index_of() and String::find() 2021-05-24 11:59:18 +02:00
LibDl LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
LibELF LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
LibGemini LibGemini: Replace fprintf(stderr) with warnln() 2021-05-31 17:43:54 +01:00
LibGfx LibGfx: Add helper for painting a rounded rect with equal corner radii 2021-06-04 19:11:45 +02:00
LibGL LibGL: Implement very basic version of glGetFloatv 2021-06-09 10:49:38 +02:00
LibGUI Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&> 2021-06-08 19:14:24 +02:00
LibHTTP LibHTTP: Percent encode/decode request URI 2021-06-01 09:28:05 +02:00
LibImageDecoderClient LibIPC: Remove unnecessary IPC::ServerConnection::handshake() 2021-05-23 09:53:55 +02:00
LibIPC LibIPC: Fix unaligned u32 access in drain_messages_from_peer() 2021-05-24 09:04:22 +02:00
LibJS LibJS: Add the SetIterator built-in and Set.prototype.{values, entries} 2021-06-09 11:48:04 +01:00
LibKeyboard LibKeyboard: Use correct filename in debug message 2021-06-06 00:21:12 +01:00
LibLine LibLine: Actually remove the two levels of deferred_invoke 2021-06-07 02:22:40 +04:30
LibM LibM: Implement nearbyint, nearbyintl and nearbyintf 2021-06-08 17:29:57 +02:00
LibMarkdown LibMarkdown: Wrap code block language string in escape_html_entities() 2021-05-19 23:31:00 +01:00
LibPCIDB Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
LibPDF AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
LibProtocol LibProtocol: Use URL class in RequestClient::start_request argument 2021-06-06 16:00:11 +02:00
LibPthread LibPthread: Correct error check in sem_post and sem_wait 2021-06-01 08:29:56 +02:00
LibRegex LibRegex: Fix compilation errors on my host machine 2021-06-06 09:26:07 +01:00
LibSanitizer Userland: Port UBSAN implementation to userspace 2021-05-27 15:18:03 +02:00
LibSQL LibSQL: Limit the number of nested subqueries 2021-06-08 19:08:13 +02:00
LibSymbolication LibSymbolication: Rename Client.{cpp,h} => Symbolication.{cpp,h} 2021-05-22 18:54:22 +02:00
LibSyntax LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
LibSystem Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
LibTest LibTest: Add --json flag to JS test runner 2021-06-04 08:32:56 +01:00
LibTextCodec LibTextCodec: Use Optional<String> for get_standardized_encoding 2021-05-18 21:02:07 +02:00
LibThreading Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
LibTLS Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&> 2021-06-08 19:14:24 +02:00
LibTTF Everywhere: codepoint => code point 2021-06-01 10:01:11 +02:00
LibVideo LibVideo: Scaffold LibVideo and implement simplistic Matroska parser 2021-06-06 17:47:00 +02:00
LibVT LibVT: Don't return a history size if alternate buffer is used 2021-06-05 22:12:18 +02:00
LibWasm LibWasm: Move Wasm::BytecodeInterpreter into its own header 2021-06-05 14:31:54 +04:30
LibWeb LibJS: Add the Set built-in object 2021-06-09 11:48:04 +01:00
LibWebSocket AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
LibX86 LibX86: Replace fprintf(stderr) with warnln() 2021-05-31 17:43:54 +01:00
CMakeLists.txt LibVideo: Scaffold LibVideo and implement simplistic Matroska parser 2021-06-06 17:47:00 +02:00