natiny.audio.source_set_spatial
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
natiny.audio.source_set_spatial(source, false)