Unable to loop music properly?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 9BitStrider

Music plays just fine when I call it in code. But I no matter what I set the loop value to (Even after reimporting with the loop value in place), it always loops back to the beginning of the song. Is there a way for me to fix this?

EDIT: Attempting to set the loop value in code didn’t work either.

var testTitle = this.GetChild(0).GetChild(0) as AudioStreamPlayer;
testTitle.Stream._Set("loop", 1);
testTitle.Stream._Set("loop_offset", 14127);

EDIT #2: Just realized that the value is in seconds. Not Milliseconds. Setting it to 14.127 fixed the issue. Apologies.