public vx_evt_participant_updated_t as_vx_evt_participant_updated() { global::System.IntPtr cPtr = VivoxCoreInstancePINVOKE.vx_evt_base_t_as_vx_evt_participant_updated(swigCPtr); vx_evt_participant_updated_t ret = (cPtr == global::System.IntPtr.Zero) ? null : new vx_evt_participant_updated_t(cPtr, false); return(ret); }
private void HandleParticipantUpdated(vx_evt_base_t eventMessage) { vx_evt_participant_updated_t evt = eventMessage; Debug.Assert(evt != null); if (evt.session_handle != _sessionHandle) { return; } if (_participants.ContainsKey(evt.participant_uri)) { ChannelParticipant p = _participants[evt.participant_uri] as ChannelParticipant; Debug.Assert(p != null); p.IsMutedForAll = evt.is_moderator_muted != 0; p.SpeechDetected = evt.is_speaking != 0; p.InAudio = (evt.active_media & 0x1) == 0x1; p.InText = (evt.active_media & 0x2) == 0x2; p.AudioEnergy = evt.energy; p._internalVolumeAdjustment = evt.volume; p._internalMute = evt.is_muted_for_me != 0; } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vx_evt_participant_updated_t obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }