mwg API
    Preparing search index...

    Interface SfxPlayOptions

    what a play carries into the backend: the mix mwg computed and a seed that makes any randomness reproducible

    interface SfxPlayOptions {
        gain: number;
        pan: number;
        pitch: number;
        seed: number;
    }
    Index
    gain: number

    0 to 1, after distance and the sound's own volume

    pan: number

    -1 (left) to 1 (right)

    pitch: number

    playback ratio, 1 unchanged

    seed: number

    the only source of chance an effect may use