ecspresso
    Preparing search index...

    Interface AudioSource<Ch>

    Audio source component attached to entities for positional/entity-bound audio.

    interface AudioSource<Ch extends string = string> {
        _soundId: number;
        autoRemove: boolean;
        channel: Ch;
        loop: boolean;
        playing: boolean;
        sound: string;
        volume: number;
    }

    Type Parameters

    • Ch extends string = string
    Index

    Properties

    _soundId: number

    Howler sound ID (system-managed, -1 = not started)

    autoRemove: boolean

    Remove entity when sound ends (like timer autoRemove)

    channel: Ch

    Channel this sound plays on

    loop: boolean

    Whether sound loops

    playing: boolean

    Whether sound is currently playing (system-managed)

    sound: string

    Asset key for the sound

    volume: number

    Individual volume (0-1)