/// Opens a new recording file for writing
Opens a new recording file for writing
Opens a new recording file for writing
pub fn record_create(
        &self,
        path: &str,
        device: &Device,
        device_configuration: &DeviceConfiguration,
    ) -> Result<Record, Error> {
        let mut handle: azure_kinect_sys::k4arecord::k4a_record_t = ptr::null_mut();
        let path = CString::new(path).unwrap_or_default();
        Error::from_k4a_result_t(unsafe {
            (self.api_record().funcs.k4a_record_create)(
                path.as_ptr(),
                device.handle as _,
                *device_configuration.for_k4arecord(),
                &mut handle,
            )
        })
        .to_result_fn(|| Record::from_handle(&self.api_record, handle))
    }
pub fn record_create ( & self , path : & str , device : & Device , device_configuration : & DeviceConfiguration , ) -> Result < Record , Error > { let mut handle : azure_kinect_sys :: k4arecord :: k4a_record_t = ptr :: null_mut ( ) ; let path = CString :: new ( path ) . unwrap_or_default ( ) ; Error :: from_k4a_result_t ( unsafe { ( self . api_record ( ) . funcs . k4a_record_create ) ( path . as_ptr ( ) , device . handle as _ , * device_configuration . for_k4arecord ( ) , & mut handle , ) } ) . to_result_fn ( | | Record :: from_handle ( & self . api_record , handle ) ) }
Opens a new recording file for writing
Opens a new recording file for writing
&self
path
&str
device
&Device
device_configuration
&DeviceConfiguration