コード例 #1
0
 private void RestoreDefaultFanSpeed()
 {
     if (restoreDefaultFanSpeedRequired)
     {
         ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0,
                                         ref this.initialFanSpeedValue);
         restoreDefaultFanSpeedRequired = false;
     }
 }
コード例 #2
0
 private void SoftwareControlValueChanged(IControl control)
 {
     if (control.ControlMode == ControlMode.Software)
     {
         ADLFanSpeedValue adlf = new ADLFanSpeedValue();
         adlf.SpeedType = ADL.ADL_DL_FANCTRL_SPEED_TYPE_PERCENT;
         adlf.Flags     = ADL.ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED;
         adlf.FanSpeed  = (int)control.SoftwareValue;
         ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0, ref adlf);
     }
 }
コード例 #3
0
ファイル: ATIGPU.cs プロジェクト: cupid0426/MyProject
 private void RestoreDefaultFanSpeed()
 {
     if (restoreDefaultFanSpeedRequired)
     {
         ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0, ref this.initialFanSpeedValue);
         if ((initialFanSpeedValue.Flags & ADL.ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED) == 0)
         {
             ADL.ADL_Overdrive5_FanSpeedToDefault_Set(adapterIndex, 0);
         }
         restoreDefaultFanSpeedRequired = false;
     }
 }