melonJS
    Preparing search index...

    Function stop

    • Stop the specified sound on all channels.

      Parameters

      • Optionalsound_name: string

        Audio clip name (case-sensitive). When omitted, every sound currently playing is stopped.

      • Optionalid: number

        Sound instance ID. When omitted, all sounds in the group are stopped.

      Returns void

      me.audio.stop("cling");