/// Opens a K4A recording for playback.
Opens a K4A recording for playback.
Opens a K4A recording for playback .
pub fn playback_open(&self, path: &str) -> Result<Playback, Error> {
        let mut handle: azure_kinect_sys::k4arecord::k4a_playback_t = ptr::null_mut();
        let path = CString::new(path).unwrap_or_default();
        Error::from_k4a_result_t(unsafe {
            (self.api_record().funcs.k4a_playback_open)(path.as_ptr(), &mut handle)
        })
        .to_result_fn(|| Playback::from_handle(&self, handle))
    }
pub fn playback_open ( & self , path : & str ) -> Result < Playback , Error > { let mut handle : azure_kinect_sys :: k4arecord :: k4a_playback_t = ptr :: null_mut ( ) ; let path = CString :: new ( path ) . unwrap_or_default ( ) ; Error :: from_k4a_result_t ( unsafe { ( self . api_record ( ) . funcs . k4a_playback_open ) ( path . as_ptr ( ) , & mut handle ) } ) . to_result_fn ( | | Playback :: from_handle ( & self , handle ) ) }
Opens a K4A recording for playback.
Opens a K4A recording for playback .
&self
path
&str