FreeCalypso > hg > fc-pcm-if
view sw/mcsi-rx/robe_out.c @ 16:f422d19c0118 default tip
fc-mcsi-rxtx: fix bug in PCM sample Rx
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 29 Oct 2024 01:41:33 +0000 |
parents | de85c3680d7e |
children |
line wrap: on
line source
/* * The function in this module is responsible for writing "robe" output. */ #include <sys/types.h> #include <stdio.h> extern FILE *out_binfile; process_rx_block(buf) u_char *buf; { unsigned n; u_char *sp; sp = buf; for (n = 0; n < 160; n++) { putc(sp[1], out_binfile); putc(sp[0], out_binfile); sp += 2; } }