00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * telephony.h - some very basic telephony definitions 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2003 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 * 00026 * $Id: telephony.h,v 1.3 2005/11/17 17:10:45 steveu Exp $ 00027 */ 00028 00029 #if !defined(_TELEPHONY_H_) 00030 #define _TELEPHONY_H_ 00031 00032 #define SAMPLE_RATE 8000 00033 00034 #if !defined(FALSE) 00035 #define FALSE 0 00036 #endif 00037 #if !defined(TRUE) 00038 #define TRUE (!FALSE) 00039 #endif 00040 00041 #if defined(__cplusplus) 00042 /* C++ doesn't seem to have sane rounding functions/macros yet */ 00043 #define lrintf(x) ((long int) (x)) 00044 #endif 00045 00046 #endif 00047 /*- End of file ------------------------------------------------------------*/