melonJS
    Preparing search index...

    Function setVolume

    • Set the global volume: the master level every sound plays through, those already playing included. A sound's own volume, given to play or playTrack, is scaled by it, so at 0.5 a sound played at 0.8 is heard at 0.4.

      Parameters

      • volume: number

        Volume value, 0.0..1.0.

      Returns void