Audio Loom - v0.3.0
    Preparing search index...

    Interface SpatialConfig

    Configuration for spatial audio behavior. Controls how 3D sounds are positioned and attenuated.

    interface SpatialConfig {
        distanceModel: DistanceModel;
        panningModel: PanningModel;
        refDistance: number;
        maxDistance: number;
        rolloffFactor: number;
        cone?: ConeConfig;
    }
    Index

    Properties

    distanceModel: DistanceModel

    Distance model for attenuation calculation.

    'inverse'
    
    panningModel: PanningModel

    Panning algorithm to use.

    'HRTF'
    
    refDistance: number

    Distance at which volume starts to decrease. Sound is at full volume within this distance.

    1
    
    maxDistance: number

    Maximum distance for sound attenuation. For 'linear' model, sound is silent beyond this distance.

    10000
    
    rolloffFactor: number

    How quickly the sound attenuates with distance. Higher values = faster volume decrease.

    1
    
    cone?: ConeConfig

    Optional cone configuration for directional audio. If not provided, sound is omnidirectional.