FreeCalypso > hg > gsm-codec-lib
comparison hrutil/dec-craft.c @ 569:0d05892150cf
gsmhr-dec-craft: add bfi-nodata setting
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 12 Feb 2025 03:43:57 +0000 |
parents | 6f8abfe253a4 |
children | 94f0cc85ad50 |
comparison
equal
deleted
inserted
replaced
568:0affb05c2ce2 | 569:0d05892150cf |
---|---|
206 } | 206 } |
207 dec_frame[18] = fields[1][0] - '0'; | 207 dec_frame[18] = fields[1][0] - '0'; |
208 } | 208 } |
209 | 209 |
210 static void | 210 static void |
211 handle_bfi_nodata() | |
212 { | |
213 dec_frame[18] = 2; | |
214 } | |
215 | |
216 static void | |
211 handle_ufi() | 217 handle_ufi() |
212 { | 218 { |
213 if (nfields != 2) { | 219 if (nfields != 2) { |
214 fprintf(stderr, "%s line %d: UFI takes one argument\n", | 220 fprintf(stderr, "%s line %d: UFI takes one argument\n", |
215 infname, lineno); | 221 infname, lineno); |
313 handle_mode(); | 319 handle_mode(); |
314 else if (!strcasecmp(fields[0], "sf")) | 320 else if (!strcasecmp(fields[0], "sf")) |
315 handle_sf(); | 321 handle_sf(); |
316 else if (!strcasecmp(fields[0], "bfi")) | 322 else if (!strcasecmp(fields[0], "bfi")) |
317 handle_bfi(); | 323 handle_bfi(); |
324 else if (!strcasecmp(fields[0], "bfi-nodata")) | |
325 handle_bfi_nodata(); | |
318 else if (!strcasecmp(fields[0], "ufi")) | 326 else if (!strcasecmp(fields[0], "ufi")) |
319 handle_ufi(); | 327 handle_ufi(); |
320 else if (!strcasecmp(fields[0], "sid")) | 328 else if (!strcasecmp(fields[0], "sid")) |
321 handle_sid(); | 329 handle_sid(); |
322 else if (!strcasecmp(fields[0], "sid-cw")) | 330 else if (!strcasecmp(fields[0], "sid-cw")) |