Debian Codegraph @

gsm/toast_lin.c

raw symbols SCIP
1 /*
2 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
3 * Universitaet Berlin. See the accompanying file "COPYRIGHT" for
4 * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
5 */
6
7 /* $Header: /usr/local/cvsroot/rplay/gsm/toast_lin.c,v 1.1.1.1 1998/07/14 22:35:24 mrb Exp $ */
8
9 #include "toast.h"
10
11 /* toast_linear.c -- read and write 16 bit linear sound in host byte order.
12 */
13
14 extern FILE *in, *out;
15
16 int linear_input (buf) gsm_signal * buf;
17 {
18 return fread( (char *)buf, sizeof(*buf), 160, in );
19 }
20
21 int linear_output P1((buf), gsm_signal * buf)
22 {
23 return -( fwrite( (char *)buf, sizeof(*buf), 160, out ) != 160 );
24 }