loadAudio

fun loadAudio(name: String, url: URL, modifier: AudioModifier = AudioModifier()): AudioWrapper

Loads an audio clip from the specified URL and applies the given modifier.

Return

An AudioWrapper instance containing the loaded audio clip.

Parameters

name

The name identifier for the audio clip.

url

The URL of the audio resource.

modifier

The AudioModifier containing playback settings.

Throws

if there is an error loading the audio.