loadMusic(name: string | null, url: string): void

Like loadSound(), but the audio is streamed and won't block loading. Use this for big audio files like background music.

paramname- The asset name.

paramurl- The resource url.

loadMusic("shoot", "/music/bossfight.mp3");

returnsThe asset data.

sincev3001.0