diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-27 20:49:15 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-27 20:49:15 +0200 |
commit | dbebf1013112bc942ad222d54f5fd2caf2e0adeb (patch) | |
tree | 354152b7f628b743e6840ee7ecfa18ecbc35d6db | |
parent | eda272eec8e31740a7712126d78fab6ac10a24de (diff) | |
download | serenity-dbebf1013112bc942ad222d54f5fd2caf2e0adeb.zip |
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. :^)
-rw-r--r-- | Libraries/LibAudio/AWavLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibAudio/AWavLoader.cpp b/Libraries/LibAudio/AWavLoader.cpp index 23d719b702..2b28f8c219 100644 --- a/Libraries/LibAudio/AWavLoader.cpp +++ b/Libraries/LibAudio/AWavLoader.cpp @@ -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; |