Esempio n. 1
0
        /// <summary>Create a new device and add it to the context</summary>
        /// <param name="file">The file from which the device should be created</param>
        /// <returns>a device that plays data from the file</returns>
        public PlaybackDevice AddDevice(string file)
        {
            object error;
            var    ptr = NativeMethods.rs2_context_add_device(Handle, file, out error);

            return(Device.Create <PlaybackDevice>(ptr));
        }