/// <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;
            }
        }
示例#2
0
 private static extern int dialog_set_volume_toast_control(IntPtr dialog, VolumeControlType control);
示例#3
0
 private static extern int dialog_set_volume_toast_control(IntPtr dialog, VolumeControlType control);