sfml.js
    Preparing search index...

    Interface SoundStreamChunk

    samples aliases a reusable native slot, valid until the callback settles.

    interface SoundStreamChunk {
        sampleCount: number;
        samples: Int16Array;
    }
    Index

    Properties

    Properties

    sampleCount: number

    本次填入的交错样本总数,须为声道数的倍数且不超过 samples.length。

    samples: Int16Array

    原生可复用的交错 16 位 PCM 写入区,仅在本次回调完成前有效。