melonJS
    Preparing search index...

    Function pause

    • Pause the specified sound on all channels. Does not reset the current playback position.

      Parameters

      • sound_name: string

        Audio clip name (case-sensitive).

      • Optionalid: number

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

      Returns void

      me.audio.pause("cling");