void DeviceEvents_MuteStateChanged(object sender, PL.DeviceEventArgs e) { if (e.Mute) { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.Mute)); } else { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.UnMute)); } }
void DeviceEvents_AudioStateChanged(object sender, PL.DeviceEventArgs e) { if (e.AudioState == PL.AudioType.MonoOff) { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.RadioClosed)); } else if (e.AudioState == PL.AudioType.MonoOn || e.AudioState == PL.AudioType.MonoOnWait) { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.RadioOpen)); if (ignore_next_radio_on) { ignore_next_radio_on = false; } else { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.ToggleTalk)); } } }
void DeviceEvents_ButtonPressed(object sender, PL.DeviceEventArgs e) { Debug.WriteLine("Got a raw event of: " + e.ButtonPressed); }
void DeviceEvents_FlashPressed(object sender, PL.DeviceEventArgs e) { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.Flash)); }
void DeviceEvents_TalkPressed(object sender, PL.DeviceEventArgs e) { StatusChanged(this, new StatusEventArgs(HEADSET_EVENT_TYPE.ToggleTalk)); }