Support playing looped sounds
This branch adds support for playing looped sounds. Support existed on the library side for years now. It was just never implemented for use. Exposed to the respective Lua functions as an optional argument, for backwards compatibility.
Small lua script to test it: loopedsound.lua
Commands:
loopsoundtest
loopedsound_plr
arg1
is the sound to play and arg2
is how many times it should be looped. Passing -1
to arg2 will loop it infinitely.