audio.mute

mute(sound_name: string, id: number, mute: boolean) → {}

mute or unmute the specified sound, but does not pause the playback.

// mute the background music
me.audio.mute("awesome_music");
Parameters:
Name Type Attributes Default Description
sound_name string

audio clip name - case sensitive

id number

<optional>

the sound instance ID. If none is passed, all sounds in group will mute.

mute boolean

<optional>

true

True to mute and false to unmute

Returns:
Type Description
Powered by webdoc!