Length function (audio time) uses integer division instead of floating-point division

The length function seems to be intended to return the audio time in seconds - it divides the number of samples by the sample rate. However, both of those values are integers/longs and so division produces an integer result. Since length was already made to be a float, simply casting one of the arguments gives us a much more useful length result without requiring changes to the function interface.