rem: Object *MUISave, *MUIUse, *MUICancel;
add: Object *MUISave, *MUIUse, *MUICancel, *MUIPlay;
context: BOOL BuildGUI(char *screenname){  Object *MUISave, *MUIUse, *MUICancel;  Object *page1,*page2;  Object *MUITFreq,*MUITChannels,*MUITOutvol,*MUITMonvol,*MUITGain,*MUITInput,*MUITOutput,*MUITDebug,*MUITEcho,*MUITSurround,*MUITClipvol,*MUITCpu,*MUITACTime;  UpdateStrings();  MUIMasterBase = (void *)OpenLibrary("muimaster.library", MUIMASTER_VLATEST);  if(MUIMasterBase == NULL)  {    Printf((char *) msgTextNoOpen, (ULONG) "muimaster.library", MUIMASTER_VLATEST);    Printf("\n");    return FALSE;  }  page1 = HGroup,    Child, VGroup,      Child, MUIUnit = CycleObject,        MUIA_CycleChain, 1,        MUIA_Cycle_Entries, Units,        MUIA_Cycle_Active, state.UnitSelected,      End,      Child, ListviewObject,        MUIA_CycleChain, 1,        MUIA_Listview_List, MUIList = ListObject,          InputListFrame,          MUIA_List_AutoVisible, TRUE,        End,      End,      Child, HGroup,        ReadListFrame,        MUIA_Background, MUII_TextBack,        Child, TextObject,          MUIA_Text_Contents, msgProperties,          MUIA_Text_SetMax, TRUE,        End,        Child, MUIInfos = TextObject,          MUIA_Text_Contents, "\n\n\n\n\n",          MUIA_Text_SetMin, FALSE,        End,      End,    End,    Child, BalanceObject,    End,    Child, VGroup,      Child, HVSpace,      Child, ColGroup(3),        GroupFrameT(msgOptions),        Child, MUITFreq = SpecialButton((STRPTR)msgOptFrequency),        Child, MUIFreq = SpecialSlider(0,max(state.Frequencies-1,0),state.FreqSelected),        Child, MUILFreq = SpecialLabel(getFreq()),        Child, MUITChannels = SpecialButton((STRPTR)msgOptChannels),        Child, MUIChannels = SpecialSlider(1,state.Channels,state.ChannelsSelected),        Child, MUILChannels = SpecialLabel(getChannels()),        Child, MUITOutvol = SpecialButton((STRPTR)msgOptVolume),        Child, MUIOutvol = SpecialSlider(0,max(state.OutVols-1,0),state.OutVolSelected),        Child, MUILOutvol = SpecialLabel(getOutVol()),        Child, MUITMonvol = SpecialButton((STRPTR)msgOptMonitor),        Child, MUIMonvol = SpecialSlider(0,max(state.MonVols-1,1),state.MonVolSelected),        Child, MUILMonvol = SpecialLabel(getMonVol()),        Child, MUITGain = SpecialButton((STRPTR)msgOptGain),        Child, MUIGain = SpecialSlider(0,max(state.Gains-1,0),state.GainSelected),        Child, MUILGain = SpecialLabel(getGain()),        Child, MUITInput = SpecialButton((STRPTR)msgOptInput),        Child, MUIInput = SpecialSlider(0,max(state.Inputs-1,0),state.InputSelected),        Child, MUILInput = SpecialLabel(getInput()),        Child, MUITOutput = SpecialButton((STRPTR)msgOptOutput),        Child, MUIOutput = SpecialSlider(0,max(state.Outputs-1,0),state.OutputSelected),        Child, MUILOutput = SpecialLabel(getOutput()),      End,      Child, HVSpace,    End,  End;  page2 = VGroup,    Child, HVSpace,    Child, HGroup,      Child, HVSpace,      Child, ColGroup(2),        GroupFrameT(msgGlobalOptions),        Child, MUITDebug = SpecialButton((STRPTR)msgGlobOptDebugLevel),        Child, MUIDebug = CycleObject,          MUIA_CycleChain, 1,          MUIA_Cycle_Entries, DebugLabels,          MUIA_Cycle_Active, globalprefs.ahigp_DebugLevel,        End,        Child, MUITEcho = SpecialButton((STRPTR)msgGlobOptEcho),        Child, MUIEcho  = CycleObject,          MUIA_CycleChain, 1,          MUIA_Cycle_Entries, EchoLabels,          MUIA_Cycle_Active, (globalprefs.ahigp_DisableEcho ? 2 : 0) | (globalprefs.ahigp_FastEcho ? 1 : 0),        End,        Child, MUITSurround = SpecialButton((STRPTR)msgGlobOptSurround),        Child, MUISurround = CycleObject,          MUIA_CycleChain, 1,          MUIA_Cycle_Entries, SurroundLabels,          MUIA_Cycle_Active, globalprefs.ahigp_DisableSurround,        End,        Child, MUITClipvol = SpecialButton((STRPTR)msgGlobOptMasterVol),        Child, MUIClipvol = CycleObject,          MUIA_CycleChain, 1,          MUIA_Cycle_Entries, ClipMVLabels,          MUIA_Cycle_Active, globalprefs.ahigp_ClipMasterVolume,        End,        Child, MUITCpu = SpecialButton((STRPTR)msgGlobOptCPULimit),        Child, MUICpu = SliderObject,          MUIA_CycleChain, 1,          MUIA_Slider_Horiz, TRUE,          MUIA_Numeric_Min, 0,          MUIA_Numeric_Max, 100,          MUIA_Numeric_Value,(globalprefs.ahigp_MaxCPU * 100 + 32768) / 65536,          MUIA_Numeric_Format,"%ld%%",        End,        Child, MUITACTime = SpecialButton((STRPTR)msgGlobOptACTime),        Child, MUIACTime = SliderObject,          MUIA_CycleChain, 1,          MUIA_Slider_Horiz, TRUE,          MUIA_Numeric_Min, 0,          MUIA_Numeric_Max, 100,          MUIA_Numeric_Value,(globalprefs.ahigp_AntiClickTime * 1000 + 32768) >> 16,          MUIA_Numeric_Format,"%ld% ms",        End,      End,      Child, HVSpace,    End,    Child, HVSpace,  End;  MUIApp = ApplicationObject,    MUIA_Application_Title, (char *) msgTextProgramName,    MUIA_Application_Version, Version,    MUIA_Application_Copyright, "1996-1999 Martin Blom",    MUIA_Application_Author, "Stphane Barbaray/Martin Blom",    MUIA_Application_Base, "AHI",    MUIA_Application_HelpFile, HELPFILE,    MUIA_Application_Menustrip, MUIMenu = MUI_MakeObject(MUIO_MenustripNM,Menus,0),    MUIA_Application_SingleTask, TRUE,    SubWindow, MUIWindow = WindowObject,      MUIA_Window_Title, (char *) msgTextProgramName,      MUIA_Window_ID   , MAKE_ID('M','A','I','N'),      MUIA_HelpNode, "AHI",      WindowContents, VGroup,        Child, RegisterGroup(PageNames),          MUIA_CycleChain, 1,          Child, page1,          Child, page2,        End,        Child, HGroup,          Child, MUISave = SimpleButton(msgButtonSave),          Child, MUIUse = SimpleButton(msgButtonUse),          Child, MUICancel = SimpleButton(msgButtonCancel),        End,      End,    End,  End;    if( MUIApp != NULL )  {    APTR item = (APTR)DoMethod(MUIMenu,MUIM_FindUData,ACTID_ICONS);    if(item)    {      set(item, MUIA_Menuitem_Checked, SaveIcons);    }    DoMethod(MUIWindow, MUIM_MultiSet, MUIA_Text_PreParse,"\033l",MUILFreq,MUILChannels,MUILOutvol,MUILMonvol,MUILGain,MUILInput,MUILOutput,NULL);    DoMethod(MUIWindow, MUIM_MultiSet, MUIA_CycleChain, 1, MUISave,MUIUse,MUICancel,NULL);    DoMethod(MUITFreq, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIFreq);    DoMethod(MUITChannels, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIChannels);    DoMethod(MUITOutvol, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIOutvol);    DoMethod(MUITMonvol, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIMonvol);    DoMethod(MUITGain, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIGain);    DoMethod(MUITInput, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIInput);    DoMethod(MUITOutput, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIOutput);    DoMethod(MUITDebug, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIDebug);    DoMethod(MUITEcho, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIEcho);    DoMethod(MUITSurround, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUISurround);    DoMethod(MUITClipvol, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIClipvol);    DoMethod(MUITCpu, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUICpu);    DoMethod(MUITACTime, MUIM_Notify, MUIA_Pressed, TRUE, MUIWindow, 3, MUIM_Set, MUIA_Window_ActiveObject, MUIACTime);    DoMethod(MUIWindow, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, MUIApp, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);    DoMethod(MUISave, MUIM_Notify, MUIA_Pressed, FALSE, MUIApp, 2, MUIM_Application_ReturnID, ACTID_SAVE);    DoMethod(MUIUse, MUIM_Notify, MUIA_Pressed, FALSE, MUIApp, 2, MUIM_Application_ReturnID, ACTID_USE);    DoMethod(MUICancel, MUIM_Notify, MUIA_Pressed, FALSE, MUIApp, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);    DoMethod(MUIUnit, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID, ACTID_UNIT);    DoMethod(MUIList, MUIM_Notify, MUIA_List_Active, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID, ACTID_MODE);    DoMethod(MUIDebug, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID,  ACTID_DEBUG);    DoMethod(MUISurround, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID,  ACTID_SURROUND);    DoMethod(MUIEcho, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID,  ACTID_ECHO);    DoMethod(MUICpu, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID,  ACTID_CPULIMIT);    DoMethod(MUIClipvol, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID,  ACTID_CLIPMV);    DoMethod(MUIACTime, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIApp, 2, MUIM_Application_ReturnID,  ACTID_ACTIME);    DoMethod(MUIFreq, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    DoMethod(MUIChannels, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    DoMethod(MUIOutvol, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    DoMethod(MUIMonvol, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    DoMethod(MUIGain, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    DoMethod(MUIInput, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    DoMethod(MUIOutput, MUIM_Notify, MUIA_Numeric_Value, MUIV_EveryTime, MUIV_Notify_Self, 3, MUIM_CallHook, &hookSlider, MUIV_TriggerValue);    set(MUIWindow, MUIA_Window_Open, TRUE);    GUINewUnit();    return TRUE;  }  return FALSE;}