Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK

◆ k4a_record_flush()

k4a_result_t k4a_record_flush ( k4a_record_t  recording_handle)
related

Flushes all pending recording data to disk.

Parameters
recording_handleHandle obtained by k4a_record_create().
Returns
K4A_RESULT_SUCCEEDED is returned on success, or K4A_RESULT_FAILED if an error occurred.
Remarks
k4a_record_flush() ensures that all data passed to the recording API prior to calling flush is written to disk. If continuing to write recording data, care must be taken to ensure no new timestamps are added from before the flush.
If an error occurs, best effort is made to flush as much data to disk as possible, but the integrity of the file is not guaranteed.