FreeCalypso > hg > fc-magnetite
changeset 564:ade27cd84b97
aci3: implemented loopback option for AT@E1 and AT@E2
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 07 Jan 2019 00:47:48 +0000 |
parents | d648cafa30cf |
children | 96c1d047b3c6 |
files | src/g23m-aci/aci/ati_audio.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/g23m-aci/aci/ati_audio.c Sun Jan 06 23:37:13 2019 +0000 +++ b/src/g23m-aci/aci/ati_audio.c Mon Jan 07 00:47:48 2019 +0000 @@ -220,13 +220,14 @@ GLOBAL T_ATI_RSLT atAtE1 ( char *cl, UBYTE srcId ) { T_AUDIO_MELODY_E1_PARAMETER e1_param; + int loopback = 0; T_RV_RETURN return_path; - cl = parse(cl, "S", (LONG)(sizeof(e1_param.melody_name)), - e1_param.melody_name); + cl = parse(cl, "Sd", (LONG)(sizeof(e1_param.melody_name)), + e1_param.melody_name, &loopback); if (!cl || !e1_param.melody_name[0]) return (ATI_FAIL); - e1_param.loopback = AUDIO_MELODY_NO_LOOPBACK; + e1_param.loopback = loopback; e1_param.melody_mode = AUDIO_MELODY_NORMAL_MODE; return_path.addr_id = NULL; @@ -262,13 +263,14 @@ GLOBAL T_ATI_RSLT atAtE2 ( char *cl, UBYTE srcId ) { T_AUDIO_MELODY_E2_PARAMETER e2_param; + int loopback = 0; T_RV_RETURN return_path; - cl = parse(cl, "S", (LONG)(sizeof(e2_param.melody_E2_name)), - e2_param.melody_E2_name); + cl = parse(cl, "Sd", (LONG)(sizeof(e2_param.melody_E2_name)), + e2_param.melody_E2_name, &loopback); if (!cl || !e2_param.melody_E2_name[0]) return (ATI_FAIL); - e2_param.E2_loopback = AUDIO_MELODY_NO_LOOPBACK; + e2_param.E2_loopback = loopback; e2_param.melody_E2_mode = AUDIO_MELODY_NORMAL_MODE; return_path.addr_id = NULL;