Function mute

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

    Parameters

    • sound_name: string

      audio clip name - case sensitive

    • Optionalid: number

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

    • Optionalmute: boolean = true

      True to mute and false to unmute

    Returns void

    // mute the background music
    me.audio.mute("awesome_music");