toast_lin.c
来自「mediastreamer2是开源的网络传输媒体流的库」· C语言 代码 · 共 25 行
C
25 行
/* * 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: /antisip/cvs/amsip/codecs/gsm/src/toast_lin.c,v 1.1 2006-07-05 10:28:50 jack 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 );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?