code: func NewCaptureDevice(deviceName string, channels int, format Format, rate int, bufferParams BufferParams) (c *CaptureDevice, err error) {
  	c = new(CaptureDevice)
  	err = c.createDevice(deviceName, channels, format, rate, false, bufferParams)
  	if err != nil {
  		return nil, err
  	}
  	return c, nil
  }
docs: // NewCaptureDevice creates a new CaptureDevice object.