Sound library's cue() ignores the decimal places?

https://www.processing.org/reference/libraries/sound/SoundFile_cue_.html

According to this, you can set a cue point in decimals of seconds with the Sound library. However, it seems to ignore the decimals - using the example, there is no difference between 15 seconds and 15.3. You can notice if you try to cue up a precise beat in a song.

Looking through the SoundFile.java file, I noticed that it seems to treat the cue point as an integer, so I went ahead and changed them all to float, naively I suppose, since I don't really know how to modify libraries and it didn't seem to work.

Any ideas on how to get a precise cue point, preferably in milliseconds with the Sound library? (I know minim can do this, but minim can't play files at different speeds, which is why I was using this library)

Sign In or Register to comment.