Function enableSpatial
-
Parameters
- host: AudioGraphHost
A
StaticSoundorAudioBus. - options: SpatialSoundOptions = {}
Spatial options (position, distance model, cone, attach, …).
Returns void
- host: AudioGraphHost
A StaticSound or AudioBus.
Spatial options (position, distance model, cone, attach, …).
Enables (or reconfigures) 3D spatial audio on a sound or bus, building the panner sub-node on first use. Pulls the spatial module only when called.