Exemple #1
0
// ResetBuffer resets the internal buffer on the rtlsdr
func (dev *Radio) ResetBuffer() error {
	retval := C.rtlsdr_reset_buffer(dev.devptr)

	if retval != 0 {
		return fmt.Errorf("rtlsdr_set_freq_correction returned error value: %d", retval)
	}
	return nil
}
Exemple #2
0
// int rtlsdr_reset_buffer(rtlsdr_dev_t *dev);
// rtlsdr_reset_buffer returns 0 on success
func (c *Context) ResetBuffer() (err int) {
	return int(C.rtlsdr_reset_buffer((*C.rtlsdr_dev_t)(c.dev)))
}
Exemple #3
0
// ResetBuffer resets the streaming buffer.
func (dev *Context) ResetBuffer() (err error) {
	i := int(C.rtlsdr_reset_buffer((*C.rtlsdr_dev_t)(dev)))
	return libError(i)
}