changeset 289:8dd51b740701

AT@VPATH query implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Aug 2017 06:15:53 +0000
parents dd3374eac8a3
children 8a23632ee0e0
files src/aci2/aci/ati_audio.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/aci2/aci/ati_audio.c	Sun Aug 27 05:53:20 2017 +0000
+++ b/src/aci2/aci/ati_audio.c	Sun Aug 27 06:15:53 2017 +0000
@@ -193,6 +193,25 @@
 		return (ATI_FAIL);
 }
 
+GLOBAL T_ATI_RSLT queatAtVPATH (char *cl, UBYTE srcId)
+{
+	char *me="@VPATH: ";
+	T_AUDIO_VOICE_PATH_SETTING vpath;
+	T_AUDIO_FULL_ACCESS_READ audio_param;
+
+	TRACE_FUNCTION("queatAtVPATH()");
+
+	audio_param.variable_indentifier = AUDIO_PATH_USED;
+	audio_param.data = &vpath;
+	if (audio_full_access_read(&audio_param) != AUDIO_OK)
+		return (ATI_FAIL);
+
+	sprintf(g_sa, "%s%d", me, vpath);
+
+	io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
+
+	return (ATI_CMPL);
+}
 #endif
 
 /* AT@E1 - play an E1 format melody */