Easy solution: open it in a DAW and splice it to the length you want
medium solution: if you know the exact point at which it loops in seconds, then you can attach a script to the audioStream and on process check if your AudioStreamPlayer's getplayback_position ( ) == *insert loop time here*, and if true, play from startTime...