lovr.audio.getSpatializer

Edit

Returns the name of the active spatializer (simple, oculus, or phonon).

The t.audio.spatializer setting in lovr.conf can be used to express a preference for a particular spatializer. If it's nil, all spatializers will be tried in the following order: phonon, oculus, simple.

spatializer = lovr.audio.getSpatializer()

Arguments

None

Returns

NameTypeDescription
spatializerstring The name of the active spatializer.

Notes

Using a feature or effect that is not supported by the current spatializer will not error, it just won't do anything.

Feature simple phonon oculus
Effect: Spatialization x x x
Effect: Attenuation x x x
Effect: Absorption x
Effect: Occlusion x
Effect: Transmission x
Effect: Reverb x
lovr.audio.setGeometry x
Source:setDirectivity x x
Source:setRadius x

See also