/// <summary> /// Make volume level up/down /// </summary> /// <param name="type">VolumeControlType</param> void ControlVolume(VolumeControlType type) { switch (type) { case VolumeControlType.Minus: VolumeLevelProcess -= 1 / MaxVolumeLevel; _playService.DecreaseVolume(); break; case VolumeControlType.Plus: //if (CurrentVolume == 9) //{ // NotifyHearingDamage(); //} VolumeLevelProcess += 1 / MaxVolumeLevel; _playService.IncreaseVolume(); break; } }
private static extern int dialog_set_volume_toast_control(IntPtr dialog, VolumeControlType control);