Strata - v1.4.10
    Preparing search index...

    Interface FootstepAudioProps

    Props for the FootstepAudio component.

    interface FootstepAudioProps {
        defaultSurface?: string;
        poolSize?: number;
        surfaces: Record<string, string>;
        throttleMs?: number;
        volume?: number;
    }
    Index

    Properties

    defaultSurface?: string

    Fallback surface name if detection fails. Default: 'default'.

    poolSize?: number

    Maximum number of concurrent step sounds. Default: 5.

    surfaces: Record<string, string>

    Map of surface names to audio file URLs or sound IDs. Keys should match detected surface names (e.g., 'grass', 'wood').

    throttleMs?: number

    Minimum interval between steps in milliseconds. Default: 50.

    volume?: number

    Playback volume multiplier. Default: 1.0.