Illutions Engine API - v0.26.0
    Preparing search index...

    Interface AudioCfg

    Defines the audio settings used for playback timing and distance-based spatial attenuation.

    interface AudioCfg {
        coneInnerAngle: number;
        coneOuterAngle: number;
        coneOuterGain: number;
        delayPlaySound: number;
        distanceModel: "linear" | "inverse" | "exponential";
        enable: boolean;
        guiOpened: boolean;
        maxDistance: number;
        refDistance: number;
        rolloffFactor: number;
    }
    Index
    coneInnerAngle: number

    The angle inside the cone where there is no attenuation.

    360
    
    coneOuterAngle: number

    The angle outside the cone where full attenuation is applied.

    360
    
    coneOuterGain: number

    The gain factor outside the cone.

    0
    
    delayPlaySound: number

    The default sound start offset in milliseconds.

    200
    
    distanceModel: "linear" | "inverse" | "exponential"

    The distance attenuation model used.

    'inverse'
    
    enable: boolean

    Whether audio support is initialized when the application starts.

    false
    
    guiOpened: boolean

    Whether the GUI audio dropdown is open.

    false
    
    maxDistance: number

    The maximum distance at which the sound is still audible.

    1000
    
    refDistance: number

    The reference distance after which the attenuation begins.

    1
    
    rolloffFactor: number

    Determines how quickly the volume falls off with distance.

    1