Sound.rolloff read/write property


Get or set the sound current rolloff (speed and direction)

This property expects a number, representing how quickly a sound rolls off as it moves away from the listener. The default value is set to 1.0

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.rolloff)