FreeCalypso > hg > vband-misc
diff amrdiff/readone-common.c @ 2:75ba83624a29
readone-amr program written
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 03 Apr 2024 19:41:45 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/amrdiff/readone-common.c Wed Apr 03 19:41:45 2024 +0000 @@ -0,0 +1,21 @@ +/* + * The function in this module is common between readone-amr and readone-efr. + */ + +#include <stdio.h> +#include <stdint.h> +#include <stdlib.h> +#include <string.h> +#include <strings.h> + +emit_frame244(bits) + uint8_t *bits; +{ + unsigned n; + + for (n = 0; n < 244; n++) { + printf("%u,", bits[n]); + if (n % 40 == 39 || n == 243) + putchar('\n'); + } +}