AudioListenerProcessor Class
Namespace: Stride.AudioAssembly: Stride.Engine.dll
Processor in charge of creating and updating the AudioListener data associated to the scene AudioListenerComponents.
public class AudioListenerProcessor : EntityProcessor<AudioListenerComponent>
Remarks
The processor updates only AudioListener associated to AudioListenerComponents The processor is subscribing to the Stride.Audio.AudioListenerProcessor.audioSystem AudioListenerComponent collection events to be informed of required AudioEmitter updates. When a AudioListenerComponent is added to the Stride.Audio.AudioListenerProcessor.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.
Name | Description | |
---|---|---|
Constructors | ||
AudioListenerProcessor() | Create a new instance of AudioListenerProcessor. |
|
Methods | ||
Draw(RenderContext) | ||
OnEntityComponentAdding(Entity, AudioListenerComponent, AudioListenerComponent) | ||
OnEntityComponentRemoved(Entity, AudioListenerComponent, AudioListenerComponent) | ||
OnSystemAdd() | ||
OnSystemRemove() |
Constructors
AudioListenerProcessor()
Create a new instance of AudioListenerProcessor.
public AudioListenerProcessor()
Methods
Draw(RenderContext)
public override void Draw(RenderContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context |
Overrides
OnEntityComponentAdding(Entity, AudioListenerComponent, AudioListenerComponent)
protected override void OnEntityComponentAdding(Entity entity, AudioListenerComponent component, AudioListenerComponent data)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
AudioListenerComponent | component | |
AudioListenerComponent | data |
Overrides
OnEntityComponentRemoved(Entity, AudioListenerComponent, AudioListenerComponent)
protected override void OnEntityComponentRemoved(Entity entity, AudioListenerComponent component, AudioListenerComponent data)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | |
AudioListenerComponent | component | |
AudioListenerComponent | data |
Overrides
OnSystemAdd()
protected override void OnSystemAdd()
Overrides
OnSystemRemove()
protected override void OnSystemRemove()