AudioRingBuffer.setSample
void setSample(ulong sample)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.
Parameters
sample | the sample number to set |