Source:getSpatialization

Edit

Returns the spatialization settings for the Source. Spatialization uses the poses of the source and listener to play the sound as if it is located in 3D space. LÖVR can do 2 kinds of spatialization:

Spatialization is a floating point number, so sources can blend between their raw audio and spatialized audio. This can be useful for objects that are close to the listener.

spatialization = Source:getSpatialization()

Arguments

None

Returns

NameTypeDescription
spatializationnumber The amount of spatialization applied to the source, from 0 to 1.

Notes

Spatialization is disabled by default.

See also