Table of Contents

Class AudioListenerProcessor

Namespace
Stride.Audio
Assembly
Stride.Engine.dll

Processor in charge of creating and updating the AudioListener data associated to the scene AudioListenerComponents.

public class AudioListenerProcessor : EntityProcessor<AudioListenerComponent>
Inheritance
AudioListenerProcessor
Inherited Members

Remarks

The processor updates only AudioListener associated to AudioListenerComponents The processor is subscribing to the AudioSystem AudioListenerComponent collection events to be informed of required AudioEmitter updates. When a AudioListenerComponent is added to the AudioSystem, the processor set the associated AudioEmitter. When a AudioListenerComponent is removed from the entity system, the processor set the AudioEmitter reference of the AudioSystem to null but do not remove the AudioListenerComponent from its collection.

Constructors

AudioListenerProcessor()

Create a new instance of AudioListenerProcessor.

public AudioListenerProcessor()

Methods

Draw(RenderContext)

Performs work related to this processor.

public override void Draw(RenderContext context)

Parameters

context RenderContext

OnEntityComponentAdding(Entity, AudioListenerComponent, AudioListenerComponent)

Run when a matching entity is added to this entity processor.

protected override void OnEntityComponentAdding(Entity entity, AudioListenerComponent component, AudioListenerComponent data)

Parameters

entity Entity

The entity.

component AudioListenerComponent
data AudioListenerComponent

The associated data.

OnEntityComponentRemoved(Entity, AudioListenerComponent, AudioListenerComponent)

Run when a matching entity is removed from this entity processor.

protected override void OnEntityComponentRemoved(Entity entity, AudioListenerComponent component, AudioListenerComponent data)

Parameters

entity Entity

The entity.

component AudioListenerComponent
data AudioListenerComponent

The associated data.

OnSystemAdd()

Run when this EntityProcessor is added to an EntityManager.

protected override void OnSystemAdd()

OnSystemRemove()

Run when this EntityProcessor is removed from an EntityManager.

protected override void OnSystemRemove()