rem: if( state.ChannelsDisabled || AHIBase->lib_Version < 5) { set(MUIScalemode, MUIA_Disabled, TRUE); set(MUIScalemode, MUIA_Cycle_Active, AHI_SCALE_FIXED_SAFE); } else { set(MUIScalemode, MUIA_Disabled, FALSE); set(MUIScalemode, MUIA_Cycle_Active, state.ScaleModeSelected); }
context: static void GUINewMode(void){  int Max, Sel, Dis;  char* buffer;  char* arg1 = getRecord();  char* arg2 = getAuthor();  char* arg3 = getCopyright();  char* arg4 = getDriver();  char* arg5 = getVersion();  char* arg6 = getAnnotation();  buffer = AllocVec( strlen( arg1 ) +                     strlen( arg2 ) +                     strlen( arg3 ) +                     strlen( arg4 ) +                     strlen( arg5 ) +                     strlen( arg6 ) +                     128,                     MEMF_ANY);  if( buffer != NULL )  {    sprintf( buffer,"0x%08lx\n%s\n%s\n%s\nDevs:AHI/%s.audio\n%s\n%s",      getAudioMode(),      arg1,      arg2,      arg3,      arg4,      arg5,      arg6 );    set(MUIInfos, MUIA_Text_Contents, (ULONG) buffer);    FreeVec(buffer);  }  Max = max(state.Frequencies -1, 0);  Sel = min(Max, state.FreqSelected);  Dis = Max==0;  set(MUIFreq, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIFreq, MUIA_Numeric_Max, Max);    set(MUIFreq, MUIA_Numeric_Value, Sel);  }  set(MUILFreq, MUIA_Text_Contents, (ULONG) getFreq());  Max = max(state.Channels, 0);  Sel = min(Max, state.ChannelsSelected);  Dis = (Max == 0 || Max == 1) || state.ChannelsDisabled;  set(MUIChannels, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIChannels, MUIA_Numeric_Max, Max);    set(MUIChannels, MUIA_Numeric_Value, Sel);  }  set(MUILChannels, MUIA_Text_Contents, (ULONG) getChannels());  if( state.ChannelsDisabled || AHIBase->lib_Version < 5)  {    set(MUIScalemode, MUIA_Disabled, TRUE);    set(MUIScalemode, MUIA_Cycle_Active, AHI_SCALE_FIXED_SAFE);  }  else  {    set(MUIScalemode, MUIA_Disabled, FALSE);    set(MUIScalemode, MUIA_Cycle_Active, state.ScaleModeSelected);  }    Max = max(state.OutVols -1, 0);  Sel = min(Max, state.OutVolSelected);  Dis = Max==0;  set(MUIOutvol, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIOutvol, MUIA_Numeric_Max, Max);    set(MUIOutvol, MUIA_Numeric_Value, Sel);  }  set(MUILOutvol, MUIA_Text_Contents, (ULONG) getOutVol());  Max = max(state.MonVols -1, 0);  Sel = min(Max, state.MonVolSelected);  Dis = Max==0;  set(MUIMonvol, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIMonvol, MUIA_Numeric_Max, Max);    set(MUIMonvol, MUIA_Numeric_Value, Sel);  }  set(MUILMonvol, MUIA_Text_Contents, (ULONG) getMonVol());  Max = max(state.Gains -1, 0);  Sel = min(Max, state.GainSelected);  Dis = Max==0;  set(MUIGain, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIGain, MUIA_Numeric_Max, Max);    set(MUIGain, MUIA_Numeric_Value, Sel);  }  set(MUILGain, MUIA_Text_Contents, (ULONG) getGain());  Max = max(state.Inputs -1, 0);  Sel = min(Max, state.InputSelected);  Dis = Max==0;  set(MUIInput, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIInput, MUIA_Numeric_Max, Max);    set(MUIInput, MUIA_Numeric_Value, Sel);  }  set(MUILInput, MUIA_Text_Contents, (ULONG) getInput());  Max = max(state.Outputs -1, 0);  Sel = min(Max, state.OutputSelected);  Dis = Max==0;  set(MUIOutput, MUIA_Disabled, Dis);  if( !Dis )  {    set(MUIOutput, MUIA_Numeric_Max, Max);    set(MUIOutput, MUIA_Numeric_Value, Sel);  }  set(MUILOutput, MUIA_Text_Contents, (ULONG) getOutput());  set(MUIPlay, MUIA_Disabled, getAudioMode() == AHI_INVALID_ID);}