Search Results for

    Show / Hide Table of Contents

    Class AudioEmitter

    Represents a 3D audio emitter in the 3D world. This object, used in combination with an AudioListener, can simulate 3D audio localization effects for a given sound. For more details, take a look at the Apply3D(AudioEmitter) function.

    Inheritance
    object
    AudioEmitter
    Namespace: Evergine.Common.Audio
    Assembly: Evergine.Common.dll
    Syntax
    public class AudioEmitter

    Constructors

    AudioEmitter()

    Initializes a new instance of the AudioEmitter class.

    Declaration
    public AudioEmitter()

    Fields

    Velocity

    The sound emitter's velocity in the 3D world.

    Declaration
    public Vector3 Velocity
    Field Value
    Type Description
    Vector3
    Remarks

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

    WorldTransform

    The world transform of the sound emitter in the 3D world.

    Declaration
    public Matrix4x4 WorldTransform
    Field Value
    Type Description
    Matrix4x4

    Properties

    ConeInnerAngle

    Gets or sets the inner cone angle in radians. This value must be within 0.0f and TwoPi.

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

    ConeOuterAngle

    Gets or sets the outer cone angle in radians. This value must be within the range of ConeInnerAngle to TwoPi.

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

    ConeOuterVolume

    Gets or sets the volume scaler on or beyond the outer cone. This value must be within 0.0f to 1.0f.

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

    DistanceScaleFactor

    Gets or sets the distance scale factor for the emitter.

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

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)

    See Also

    Apply3D(AudioEmitter)
    AudioListener
    In this article
    Back to top
    Generated by DocFX