Method that loops a region of a sound

For example:
Sound:LoopRegion(timeposition1, timeposition2)

This method would allow you to loop certain regions in a sound file. This would be useful for sound-maps ( see http://www.roblox.com/LoveNotesAudio-001-item?id=259821571 ) that include lots of sounds for one game. I’m making a sound map for my game, Lava Tumble, which will include two different looping regions for two different songs, and that’s why I would like this feature to be added.

(If you’re confused about any of this just ask)

No one had better tell me that I should just upload more than one audio or I will snap someone’s neck.

1 Like

Why not just upload more audio

jk-

Maybe just a :PlayRegion(timepos1,timepos2)

because the Looped property of sound should make the part you play loop if it is set.

1 Like

That’s actually something I need, also, so that’s a good idea. I just want to emphasize the importance of looping play-regions because I feel like that would be forgotten and then it wouldn’t work the way I hoped without attention from developers.

I programmed a module that handles this actually, I have a little bit of documentation, but it is what I use for my space game, you’ll probably need to customize it a bit.

http://pastebin.com/rZzZGGa5
the m.m property is the max audio allowed playing at once.

But yes, this would be nice.

Thanks, ghostleader. I might be using this soon.

Maybe properties that set a range the sound plays in (start and end positions). You’d use play and loop features normally.