1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibAudio: Allow WAV files up to 1GB.

We were limiting ourselves to only play WAV files smaller than 42 MB
for no particular reason. This patch increases the limit to 1 GB.
Perhaps there should not be any limit at all, but 1GB seems like a
reasonable sanity check at the moment. :^)
This commit is contained in:
Andreas Kling 2019-07-27 20:49:15 +02:00
parent eda272eec8
commit dbebf10131

View file

@ -55,9 +55,9 @@ bool AWavLoader::parse_header()
u32 sz;
stream >> sz;
ok = ok && sz < 1024 * 1024 * 42; // arbitrary
ok = ok && sz < 1024 * 1024 * 1024; // arbitrary
CHECK_OK("File size");
ASSERT(sz < 1024 * 1024 * 42);
ASSERT(sz < 1024 * 1024 * 1024);
u32 wave;
stream >> wave;