Bugzilla – Bug 2099
24-bit WAV (and AIFF) export is wrongly limited to 3GB
Last modified: 2019-07-20 10:36:07 UTC
24-bit WAV (and AIFF)export is wrongly limited to 3GB - a maximum time of 3h22m for stereo and 6h45m for mono. Those timings are the max times for 32-bit not 24-bit. This is an error created in fixing Bug #2057 Exporting WAV files > 4GB silently creates invalid, truncated, WAV file. This fails safe - it's just an overly restrictive limit.
Technically this is a regression as we didn't have any checks on file size before, so it was possible with 2.3.1 and earlier to properly create AIFF files up to the 4GB limit rather than the 3GB limit as now. It's just that beyond 4GB they just got truncated and corrupted silently without warning (Bug #2057)
This is the table of max sizes in the 2.3.2 manual https://alphamanual.audacityteam.org/man/Size_limits_for_WAV_files
We are getting user complaints about this on the Forum
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/53eb72103daf813046286ca499467cb1216bd148
Testing on W10 with audacity-2.3.3-alpha-288-a8d864ea9f5c3bafb8c66217b9fdcc0af66ac827 This now exports a stereo track of length 3hrs22mins as 24-bit WAV OK
Testing on W10 with audacity-2.3.3-alpha-288-a8d864ea9f5c3bafb8c66217b9fdcc0af66ac827 Steps updated for lenght of WAV file This now exports a stereo track of length 4hrs30mins as 24-bit WAV OK 4Hours31 still, properly gets the error message blocking the export
Test good on MacOS 10.13.6 Commit a07b16 Note the actual file generated is 4.29GB so the error popup is not accurate. It should say something like "not over 4 Hours 30 Minutes in this mode." since it is over 4GB in size.
Marked as minus for "nust tetst all OS" - so marked RESOLVED FIXED on the basis of W10 and Mac tests