Function rs2_create_record_device

Function Documentation

rs2_device *rs2_create_record_device(const rs2_device *device, const char *file, rs2_error **error)

Creates a recording device to record the given device and save it to the given file

Parameters:
  • device[in] The device to record

  • file[in] The desired path to which the recorder should save the data

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

A pointer to a device that records its data to file, or null in case of failure