Пример #1
0
        internal static DeviceListChangedEvent FromNative(
            ADLDeviceListChangedEvent devListChangedEvnt)
        {
            DeviceListChangedEvent result = new DeviceListChangedEvent();

            result._audioIn  = devListChangedEvnt.audioIn;
            result._videoIn  = devListChangedEvnt.videoIn;
            result._audioOut = devListChangedEvnt.audioOut;
            return(result);
        }
Пример #2
0
 private void on_device_list_changed_callback_t(IntPtr opaque,
                                                ref ADLDeviceListChangedEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onDeviceListChanged(
                 DeviceListChangedEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
 private void on_device_list_changed_callback_t(IntPtr opaque,
     ref ADLDeviceListChangedEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onDeviceListChanged(
                 DeviceListChangedEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }
 internal static DeviceListChangedEvent FromNative(
     ADLDeviceListChangedEvent devListChangedEvnt)
 {
     DeviceListChangedEvent result = new DeviceListChangedEvent();
     result._audioIn = devListChangedEvnt.audioIn;
     result._videoIn = devListChangedEvnt.videoIn;
     result._audioOut = devListChangedEvnt.audioOut;
     return result;
 }