melonJS
    Preparing search index...

    Function getMasterGain

    • Return the audio module's master gain node — the single GainNode every playback path runs through on its way to ctx.destination, and the lever that setVolume / muteAll manipulate.

      Connect to this node (instead of ctx.destination) whenever you build a custom WebAudio graph and want the result to respect the engine's mute / volume state. Returns null when audio is disabled or unavailable.

      Returns GainNode | null