Search Results for

    Show / Hide Table of Contents

    Class AudioListener

    Class representing an audio listener.

    Inheritance
    object
    AudioListener
    ALAudioListener
    XAudioListener
    Namespace: Evergine.Common.Audio
    Assembly: Evergine.Common.dll
    Syntax
    public abstract class AudioListener

    Constructors

    AudioListener()

    Initializes a new instance of the AudioListener class.

    Declaration
    public AudioListener()

    Properties

    DopplerFactor

    Gets or sets the Doppler effect factor.

    Declaration
    public float DopplerFactor { get; set; }
    Property Value
    Type Description
    float

    Velocity

    Gets or sets the sound listener's velocity in the 3D world.

    Declaration
    public Vector3 Velocity { get; set; }
    Property Value
    Type Description
    Vector3
    Remarks

    This is only used to calculate the Doppler effect on the sound.

    WorldTransform

    Gets or sets the world transform of the sound listener in the 3D world.

    Declaration
    public Matrix4x4 WorldTransform { get; set; }
    Property Value
    Type Description
    Matrix4x4

    Methods

    UpdateDopplerFactor(float)

    Updates the Doppler factor for this listener.

    Declaration
    protected abstract void UpdateDopplerFactor(float dopplerFactor)
    Parameters
    Type Name Description
    float dopplerFactor

    The new Doppler factor.

    UpdateVelocity(ref Vector3)

    Updates the velocity of this listener.

    Declaration
    protected abstract void UpdateVelocity(ref Vector3 velocity)
    Parameters
    Type Name Description
    Vector3 velocity

    The new velocity.

    UpdateWorldTransform(ref Matrix4x4)

    Updates the world transform of this listener.

    Declaration
    protected abstract void UpdateWorldTransform(ref Matrix4x4 worldTransform)
    Parameters
    Type Name Description
    Matrix4x4 worldTransform

    The new world transform matrix.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX