natiny.audio.source_set_spatial

Lua
natiny.audio.source_set_spatial(source, spatial)

Sets whether a source is positioned in the 3D world.

Parameters

Name Type Description
source number Source handle
spatial boolean Whether to use spatial rendering

Example

Lua
natiny.audio.source_set_spatial(source, false)