Source Academy Modules
    Preparing search index...

    Function create_sound_config

    • Create sound config object, can be used to configure sound settings.

      For more details about sound config object, see: https://photonstorm.github.io/phaser3-docs/Phaser.Types.Sound.html#.SoundConfig

      Parameters

      • mute: boolean = false

        whether the sound should be muted or not

      • volume: number = 1

        value between 0(silence) and 1(full volume)

      • rate: number = 1

        the speed at which the sound is played

      • detune: number = 0

        detuning of the sound, in cents

      • seek: number = 0

        position of playback for the sound, in seconds

      • loop: boolean = false

        whether or not the sound should loop

      • delay: number = 0

        time, in seconds, that elapse before the sound actually starts

      Returns ObjectConfig

      sound config