Skip to main content

SoundPromiseUtils

Utility functions involving sounds and their state

Functions

promiseLoaded

SoundPromiseUtils.promiseLoaded(soundSound) → Promise

Promises that a sound is loaded

promiseAllSoundsLoaded

SoundPromiseUtils.promiseAllSoundsLoaded(sounds{Sound}) → Promise

Promises that all sounds are loaded

Show raw api
{
    "functions": [
        {
            "name": "promiseLoaded",
            "desc": "Promises that a sound is loaded",
            "params": [
                {
                    "name": "sound",
                    "desc": "",
                    "lua_type": "Sound"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 20,
                "path": "src/sounds/src/Shared/SoundPromiseUtils.lua"
            }
        },
        {
            "name": "promiseAllSoundsLoaded",
            "desc": "Promises that all sounds are loaded",
            "params": [
                {
                    "name": "sounds",
                    "desc": "",
                    "lua_type": "{ Sound }"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 69,
                "path": "src/sounds/src/Shared/SoundPromiseUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "SoundPromiseUtils",
    "desc": "Utility functions involving sounds and their state",
    "source": {
        "line": 5,
        "path": "src/sounds/src/Shared/SoundPromiseUtils.lua"
    }
}