Both have the same three methods:
load(key, url), play(key) and mute().
Load your files
Put the audio files in your project’sassets folder, then load each one under a key after app.init:
Play
From a system, or anywhere you have the context:ctx.music.play(key)stops the track that was playing before.playthrowsNfNotFoundwhen no file was loaded under that key.- Playing a sound that is already playing has no effect until it ends.