AudioRingBuffer.setSample

Make sure that the next sample written to the device is accounted for as being the sample sample written to the device. This value will be used in reporting the current sample position of the ringbuffer.

This function will also clear the buffer with silence.

MT safe.

class AudioRingBuffer
void
setSample
(
ulong sample
)

Parameters

sample ulong

the sample number to set