Sound.maxdistance read/write property


Get or set the maximum distance for attentation calculation. This property default value is set to 3.4028234663853e+38

If you don't want to use sound spatialization, just ignore this property

Example

local audio = require "audio" local console = require "console" local sound = audio.Sound("music.mp3") print(sound.maxdistance)