📄 gsm.h
字号:
/************************************************************************ Copyright (C) 2000-2005 Trolltech AS and its licensors.** All rights reserved.**** This file is part of the Qtopia Environment.**** This file may be distributed and/or modified under the terms of the** GNU General Public License version 2 as published by the Free Software** Foundation and appearing in the file LICENSE.GPL included in the** packaging of this file.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.**** See http://www.trolltech.com/gpl/ for GPL licensing information.** See below for additional copyright and license information**** Contact info@trolltech.com if any conditions of this licensing are** not clear to you.************************************************************************//* * 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: /home/cvsroot/qtopia2/src/3rdparty/libraries/gsm/gsm.h,v 1.1 2002/10/28 00:28:29 rweather Exp $*/#ifndef GSM_H#define GSM_H#ifdef __cplusplus# define NeedFunctionPrototypes 1#endif#if __STDC__# define NeedFunctionPrototypes 1#endif#ifdef _NO_PROTO# undef NeedFunctionPrototypes#endif#ifdef NeedFunctionPrototypes# include <stdio.h> /* for FILE * */#endif#undef GSM_P#if NeedFunctionPrototypes# define GSM_P( protos ) protos#else# define GSM_P( protos ) ( /* protos */ )#endif/* * Interface */typedef struct gsm_state * gsm;typedef short gsm_signal; /* signed 16 bit */typedef unsigned char gsm_byte;typedef gsm_byte gsm_frame[33]; /* 33 * 8 bits */#define GSM_MAGIC 0xD /* 13 kbit/s RPE-LTP */#define GSM_PATCHLEVEL 10#define GSM_MINOR 0#define GSM_MAJOR 1#define GSM_OPT_VERBOSE 1#define GSM_OPT_FAST 2#define GSM_OPT_LTP_CUT 3#define GSM_OPT_WAV49 4#define GSM_OPT_FRAME_INDEX 5#define GSM_OPT_FRAME_CHAIN 6extern gsm gsm_create GSM_P((void));extern void gsm_destroy GSM_P((gsm)); extern int gsm_option GSM_P((gsm, int, int *));extern void gsm_encode GSM_P((gsm, gsm_signal *, gsm_byte *));extern int gsm_decode GSM_P((gsm, gsm_byte *, gsm_signal *));#undef GSM_P#endif /* GSM_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -