Sound.load method

load(id: str, callback: Callable[[t: Sound], None]) -> Sound:

Loads a sound via the provided sound id.

Parameters

  • id: str

    sound asset id.

  • callback: Callable[[t: Sound], None]

    triggers once the Sound is fully loaded.

Returns

loaded Sound.