Nobleworks/Android-libmpg — pull request #3 by antonyt (2013-02-06 23:58:00+00:00)
Title: 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.