Also I often see floats in the lib where other types (e.g. ms for the time, samples for sound) could be use. Could you maybe add support for non-float values for such things?
I agree that unsigned integers are better for storing time in milliseconds
So, why don't I see any possibilites of using ms (or e.g. 1/1000000 secs)? ^^
To get looping a stream very precisely it would be good to pass the sample number and not a float, in my opinion.
I understand, but I still don't think that in this particular context you would loose precision with floats. If I'm wrong please provide more detailed arguments
I have got a simple example:
Let's assume, the sound does have
3,333,333 samples. Loop start might be 1,111,111. If I'd calculate the seconds, it would be 1/3 or the song length (let's assume
100 secs), the the float value will be about
33.333333. When I calculate
33.333333/100*3,333,333, I would get
1,111,110.989, so will it be round down to 1,111,110?