diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-04-07 12:29:46 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-04-07 12:29:46 +0000 |
commit | 3ade1510e72926d02d7c7d4416257449bc0cd3f3 (patch) | |
tree | c51d4960cac0fcd8bf3483a8e77444ac5f9a3177 /third_party/gsm/src/toast_lin.c | |
parent | bfd3f58f5b715238fe618d053ddf908a34f1e56c (diff) |
Split speex, portaudio, and gsm into third_party directory
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1168 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/gsm/src/toast_lin.c')
-rw-r--r-- | third_party/gsm/src/toast_lin.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/gsm/src/toast_lin.c b/third_party/gsm/src/toast_lin.c new file mode 100644 index 00000000..7b5f8453 --- /dev/null +++ b/third_party/gsm/src/toast_lin.c @@ -0,0 +1,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 ); +} |