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:
parent
eda272eec8
commit
dbebf10131
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue