Code: Select all
(snd-length sound maxlen)
NY:ALL = 1000000000
NY:ALL = 576460752303423488 (2^59)
The reason for the maxlen / limit parameter in Nyquist functions is usually to avoid memory exhaustion. Now that NY:ALL is such a big number, it is no longer safe to use NY:ALL because it is so large.
In some cases using NY:ALL as the limit may cause a fatal problem.
One such example is the function SND-SAMPLES. On 32-bit Windows builds, NY:ALL overflows in SND-SAMPLES and results in an empty array. On other platforms using NY:ALL is still unsuitable in SND-SAMPLES as the size of the array could be up to 10^19 bytes.