FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/ati_audio.c @ 288:dd3374eac8a3
AT@VPATH setting implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 Aug 2017 05:53:20 +0000 |
parents | d85305a74518 |
children | 8dd51b740701 |
comparison
equal
deleted
inserted
replaced
287:d85305a74518 | 288:dd3374eac8a3 |
---|---|
165 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); | 165 io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT); |
166 | 166 |
167 return (ATI_CMPL); | 167 return (ATI_CMPL); |
168 } | 168 } |
169 | 169 |
170 #ifdef CONFIG_TARGET_FCDEV3B | |
171 /* AT@VPATH - configure digital voice path */ | |
172 GLOBAL T_ATI_RSLT atAtVPATH ( char *cl, UBYTE srcId ) | |
173 { | |
174 int vpath_int; | |
175 T_AUDIO_VOICE_PATH_SETTING vpath; | |
176 T_AUDIO_FULL_ACCESS_WRITE audio_param; | |
177 T_RV_RETURN return_path; | |
178 | |
179 TRACE_FUNCTION("atAtVPATH()"); | |
180 | |
181 cl = parse(cl, "D", &vpath_int); | |
182 if (!cl) | |
183 return (ATI_FAIL); | |
184 vpath = vpath_int; | |
185 audio_param.variable_indentifier = AUDIO_PATH_USED; | |
186 audio_param.data = &vpath; | |
187 | |
188 return_path.addr_id = NULL; | |
189 return_path.callback_func = audio_callback; | |
190 if (audio_full_access_write(&audio_param, return_path) == AUDIO_OK) | |
191 return (ATI_CMPL); | |
192 else | |
193 return (ATI_FAIL); | |
194 } | |
195 | |
196 #endif | |
197 | |
170 /* AT@E1 - play an E1 format melody */ | 198 /* AT@E1 - play an E1 format melody */ |
171 GLOBAL T_ATI_RSLT atAtE1 ( char *cl, UBYTE srcId ) | 199 GLOBAL T_ATI_RSLT atAtE1 ( char *cl, UBYTE srcId ) |
172 { | 200 { |
173 T_AUDIO_MELODY_E1_PARAMETER e1_param; | 201 T_AUDIO_MELODY_E1_PARAMETER e1_param; |
174 T_RV_RETURN return_path; | 202 T_RV_RETURN return_path; |