internal static MicGainEvent FromNative(CDOMicGainEvent micGainEvnt)
 {
     MicGainEvent result = new MicGainEvent();
     result._gain = micGainEvnt.gain;
     return result;
 }
 private void on_mic_gain_callback_t(IntPtr opaque,
     ref CDOMicGainEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onMicGain(MicGainEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }