Skip to content

Support playing looped sounds

SteelT requested to merge loopedsounds into next

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.

Merge request reports