loadAudioResource

fun loadAudioResource(path: String): AudioResource

Asynchronously loads an audio resource from a relative path.

Return

An AudioResource object representing the loaded audio.

Parameters

path

The relative path to the audio resource in the AssetBundle.

Throws

If any error occurs during the loading process.