FreeCalypso > hg > freecalypso-sw
comparison 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 |
comparison
equal
deleted
inserted
replaced
1029:333015c662bc | 1030:194967e11b2b |
---|---|
17 static u_long frame_count; | 17 static u_long frame_count; |
18 | 18 |
19 void | 19 void |
20 tch_dlbits_handler() | 20 tch_dlbits_handler() |
21 { | 21 { |
22 u_char writebytes[33]; | |
23 | |
22 if (!gsm_data_file) | 24 if (!gsm_data_file) |
23 return; | 25 return; |
24 fwrite(rvi_msg + 9, 33, 1, gsm_data_file); | 26 gsm0610_tidsp_to_libgsm(rvi_msg + 9, writebytes); |
27 fwrite(writebytes, 1, 33, gsm_data_file); | |
25 frame_count++; | 28 frame_count++; |
26 } | 29 } |
27 | 30 |
28 static void | 31 static void |
29 cmd_tch_record_start(filename) | 32 cmd_tch_record_start(filename) |