This message is generated when the number of samples is not a positive integer or is too large to be represented as a machine integer on your computer.
The number of samples is the product of the sample rate and the length of the interval.
Examples that might otherwise generate this message because of excessive sample length will often exhaust the memory of your computer while allocating memory to store the sample.
Off[message] switches off the message; On[message] switches it on. For example: Off[Play::sample].