Component:AudioListener

From Resonite Wiki
Component image 
File:AudioListenerComponent.png
Audio Listener component as seen in the Scene Inspector

The Audio Listener component can hear audio from the world around it and relay it back. It can also be used as a source for audio data for AudioOutput, working as a virtual microphone (This only works on listeners that aren't bound to specific user - ActiveUser must be null)

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
ActiveUser User Position the audio source to this user.
Effects direct AutoSyncRefList`1<AudioDSP_Effect> The list of affects to apply to the audio this recieves.

Usage

Audio Reverb zones and other effects can be dynamically assigned to the list of Effects using spatial variables. The default variable for such is "Resonite.Audio.Filters" of type AudioDSP_Effect. Using SphereConstantReferenceSpatialVariables of the same type can be used to designate areas with reverbs using the Spatial variables system.

For audio reverb, the AudioDSP_Effect the sphere spatial variable component points to needs to be a Component:AudioFilterBlendWrapper with a Component:AudioZitaReverb in it

The list of effects on this component can be driven using the ReferenceSpatialVariableDriver and will change depending on what audio effects at it's location it can sample from surrounding SphereConstantReferenceSpatialVariables

Examples

See Also