/// <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;
            }
        }
Exemplo n.º 2
0
 private static extern int dialog_set_volume_toast_control(IntPtr dialog, VolumeControlType control);
Exemplo n.º 3
0
 private static extern int dialog_set_volume_toast_control(IntPtr dialog, VolumeControlType control);