FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/ati_fcmisc.c @ 302:d32ac4edb634
aci: add AT%MSCAP command for tinkering with /pcm/MSCAP
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 05 Jun 2023 21:34:33 +0000 |
parents | 4bb5772a05a3 |
children |
comparison
equal
deleted
inserted
replaced
301:4bb5772a05a3 | 302:d32ac4edb634 |
---|---|
101 char *me="@SPENH: "; | 101 char *me="@SPENH: "; |
102 | 102 |
103 TRACE_FUNCTION("queatAtSPENH()"); | 103 TRACE_FUNCTION("queatAtSPENH()"); |
104 | 104 |
105 sprintf(g_sa, "%s%u", me, SIM_allow_speed_enhancement); | 105 sprintf(g_sa, "%s%u", me, SIM_allow_speed_enhancement); |
106 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); | |
107 return (ATI_CMPL); | |
108 } | |
109 | |
110 /* AT%MSCAP - tinker with /pcm/MSCAP settings */ | |
111 GLOBAL T_ATI_RSLT atPercentMSCAP (char *cl, UBYTE srcId) | |
112 { | |
113 EF_MSCAP mscap; | |
114 | |
115 TRACE_FUNCTION("atPercentMSCAP()"); | |
116 | |
117 mscap.featLst1 = 0; | |
118 mscap.featLst2 = 0; | |
119 mscap.featLst3 = 0; | |
120 cl = parse(cl, "XXXxxx", &mscap.chnMode, &mscap.datCap1, &mscap.datCap2, | |
121 &mscap.featLst1, &mscap.featLst2, &mscap.featLst3); | |
122 if (!cl) | |
123 return (ATI_FAIL); | |
124 pcm_WriteFile((UBYTE *) EF_MSCAP_ID, SIZE_EF_MSCAP, (UBYTE *) &mscap); | |
125 return (ATI_CMPL); | |
126 } | |
127 | |
128 GLOBAL T_ATI_RSLT queatPercentMSCAP (char *cl, UBYTE srcId) | |
129 { | |
130 EF_MSCAP mscap; | |
131 UBYTE version; | |
132 char *me="%MSCAP: "; | |
133 | |
134 pcm_ReadFile((UBYTE *) EF_MSCAP_ID, SIZE_EF_MSCAP, (UBYTE *) &mscap, | |
135 &version); | |
136 sprintf(g_sa, "%s%02X,%02X,%02X,%02X,%02X,%02X", me, mscap.chnMode, | |
137 mscap.datCap1, mscap.datCap2, mscap.featLst1, mscap.featLst2, | |
138 mscap.featLst3); | |
106 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); | 139 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); |
107 return (ATI_CMPL); | 140 return (ATI_CMPL); |
108 } | 141 } |
109 | 142 |
110 /* AT%SPVER - set custom speech version list */ | 143 /* AT%SPVER - set custom speech version list */ |