1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00
serenity/Userland/Libraries/LibAudio
Karol Kosek 01e1e2c2c5 LibAudio: Read custom block sizes and sample rates as big endian
This fixes stucking in a loop at the end of the file, as
(a) custom block sizes are usually placed there, as the remaining
size might not be simply calculated as a power of two, and
(b) the number of bytes to read was incorrect (the program said
the block size was 32525, where flac -a said it's actually 3200).

Unfortunately, I couldn't trigger the bug for the sample rates,
so it may be not true, but I'd doubt it, giving the fact that flac
almost everywhere uses big endian numbers.
2021-07-22 22:57:05 +02:00
..
Buffer.cpp LibAudio: Make ResampleHelper templated for different sample types 2021-06-25 20:48:14 +04:30
Buffer.h LibAudio: Make ResampleHelper templated for different sample types 2021-06-25 20:48:14 +04:30
ClientConnection.cpp LibAudio: Add ClientConnection::async_enqueue() 2021-07-05 19:33:55 +02:00
ClientConnection.h LibAudio: Add ClientConnection::async_enqueue() 2021-07-05 19:33:55 +02:00
CMakeLists.txt LibAudio: Implement a basic FLAC loader 2021-06-25 20:48:14 +04:30
FlacLoader.cpp LibAudio: Read custom block sizes and sample rates as big endian 2021-07-22 22:57:05 +02:00
FlacLoader.h LibAudio: Implement a basic FLAC loader 2021-06-25 20:48:14 +04:30
FlacTypes.h LibAudio: Implement a basic FLAC loader 2021-06-25 20:48:14 +04:30
Loader.cpp LibAudio: Implement a basic FLAC loader 2021-06-25 20:48:14 +04:30
Loader.h LibAudio: Make LoaderPlugin::error_string return String& 2021-06-25 20:48:14 +04:30
WavLoader.cpp LibAudio: Make ResampleHelper templated for different sample types 2021-06-25 20:48:14 +04:30
WavLoader.h LibAudio: Make ResampleHelper templated for different sample types 2021-06-25 20:48:14 +04:30
WavWriter.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
WavWriter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00