diff rvinterf/asyncshell/tchrec.c @ 1030:194967e11b2b

fc-shell: tch record and tch play reworked for libgsm-compatible file format
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 31 May 2016 18:39:06 +0000
parents 71bbddbcc6a1
children
line wrap: on
line diff
--- a/rvinterf/asyncshell/tchrec.c	Tue May 31 01:53:04 2016 +0000
+++ b/rvinterf/asyncshell/tchrec.c	Tue May 31 18:39:06 2016 +0000
@@ -19,9 +19,12 @@
 void
 tch_dlbits_handler()
 {
+	u_char writebytes[33];
+
 	if (!gsm_data_file)
 		return;
-	fwrite(rvi_msg + 9, 33, 1, gsm_data_file);
+	gsm0610_tidsp_to_libgsm(rvi_msg + 9, writebytes);
+	fwrite(writebytes, 1, 33, gsm_data_file);
 	frame_count++;
 }