set_sample


Description:

public void set_sample (uint64 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:

this

the RingBuffer to use

sample

the sample number to set