Shorten a song
-
Hi everyone,
Is there any way to shorten a song? I found a song very eligible for becoming the soundtrack of my game, but this song has no audio the first five seconds so there is a pause when I play it on loop. I need to somehow remove the first few seconds of the song...
Thanks in advance!
-
I do not think you can jump to a specific place in a song, but perhaps you could keep track of the time since the song started, and start it on a new channel (on zero volume) five seconds before the first one ends? And then stop the first channel and raise the volume of the new channel to switch it over...
There is also the audioLength() function to get the length of an audio track, which could be useful.
-
@vinicity Thank you very much for your answer. If I undestood you well:
- I would need to allocate two audio channels only for this porpuse.
- I would need to track of the time everytime the song starts.
I'll check it out but I see this solution a bit tricky.