isSoundLooped
Shared
Tells whether a sound plays again when it reaches its end.
bool isSoundLooped(sound sound)
Parameters
| Name | Type | Description |
|---|---|---|
| sound | sound | The sound element. On the client a dui element also works, for the browser's sound. |
Returns
true if it loops, false if it does not or the sound was not found.
Example
outputDebugString(isSoundLooped(music) and "looping" or "plays once")