Spatializer
The atmokySpatializer plug-in, as its name implies, is in charge of spatializing source audio.
To accomplish this, it receives position and orientation data from unity and modifies the incoming audio data accordingly.
Additionally, it applies Occlusion
, Directivity
and Near-Field Effects
, which can be controlled via the Atmoky.Source
script.
Spatializing Sound Sources
There are two ways to set up rendering, default and bulk. Usually, using the default option is sufficient. For projects that need to spatialize a very high number of sources, consider using bulk rendering to help you improve performance.
To learn how to set up trueSpatial for bulk rendering, have a look at the Renderer section.
Spatialize an Audio Source
- Add one or several AudioSource(s) to your scene.
- Assign the atmoky Source script (
Add Component -> Atmoky -> Source
) to the AudioSource(s). - Click the
Set atmoky Spatializer
,Set to 3D
andEnable spatialization
buttons on the Source script GUI to configure the AudioSource for spatialization. - Set the
Output
of the AudioSource to the desired Mixer/Group (or leave unset to route to Master).