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.
this |
the RingBuffer to use |
sample |
the sample number to set |