Delegate SampleFiller
Produces the next block of PCM samples for a ProceduralSoundSource.
public delegate void SampleFiller(Span<short> samples, int sampleRate, int channels)
Parameters
samplesSpan<short>The block to fill, interleaved by channel: for stereo, left then right for each frame. Every element must be written; the buffer is reused between calls and holds the previous block.
sampleRateintSamples per second per channel, as given when the sound was created.
channelsint1 for mono, 2 for stereo.