lin
2025-08-01 633231e833e21d5b8b1c00cb15aedb62b3b78e8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
 * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
 * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
 */
 
/* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/toast_lin.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */
 
#include    "toast.h"
 
/*  toast_linear.c -- read and write 16 bit linear sound in host byte order.
 */
 
extern FILE    *in, *out;
 
int linear_input (buf) gsm_signal * buf;
{
   return fread( (char *)buf, sizeof(*buf), 160, in );
}
 
int linear_output P1((buf), gsm_signal * buf)
{
   return -( fwrite( (char *)buf, sizeof(*buf), 160, out ) != 160 );
}