Source:setSpatialization

Edit

Sets 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.



Arguments

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

Returns

Nothing

Arguments

NameTypeDescription
enableboolean Whether spatialization should be enabled. true for 1, false for 0.

Returns

Nothing

See also