pub fn new(
        api_record: Arc<ApiRecord>,
        path: &str,
        device: &Device,
        device_configuration: &k4a_device_configuration_t,
    ) -> Result<Record, Error> {
        let mut handle: k4a_record_t = ptr::null_mut();
        let path = CString::new(path).unwrap_or_default();
        Error::from((api_record.k4a_record_create)(
            path.as_ptr(),
            device.handle,
            *device_configuration,
            &mut handle,
        ))
        .to_result_fn(|| Self { api_record, handle })
    }
/// Opens a new recording file for writing
Opens a new recording file for writing
Opens a new recording file for writing
pub fn new(
        api_record: Arc<ApiRecord>,
        path: &str,
        device: &Device,
        device_configuration: &k4a_device_configuration_t,
    ) -> Result<Record, Error> {
        let mut handle: k4a_record_t = ptr::null_mut();
        let path = CString::new(path).unwrap_or_default();
        Error::from((api_record.k4a_record_create)(
            path.as_ptr(),
            device.handle,
            *device_configuration,
            &mut handle,
        ))
        .to_result_fn(|| Self { api_record, handle })
    }
pub fn new ( api_record : Arc < ApiRecord > , path : & str , device : & Device , device_configuration : & k4a_device_configuration_t , ) -> Result < Record , Error > { let mut handle : k4a_record_t = ptr :: null_mut ( ) ; let path = CString :: new ( path ) . unwrap_or_default ( ) ; Error :: from ( ( api_record . k4a_record_create ) ( path . as_ptr ( ) , device . handle , * device_configuration , & mut handle , ) ) . to_result_fn ( | | Self { api_record , handle } ) }
Opens a new recording file for writing
Opens a new recording file for writing
api_record
Arc<ApiRecord>
path
&str
device
&Device
device_configuration
&k4a_device_configuration_t