global.h 2.06 KB
Newer Older
savoirfairelinux's avatar
savoirfairelinux committed
1
/**
llea's avatar
llea committed
2
 *  Copyright (C) 2004-2005 Savoir-Faire Linux inc.
savoirfairelinux's avatar
savoirfairelinux committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
 *  Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
 *                                                                              
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *                                                                                
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *                                                                              
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __GLOBAL_H__
#define __GLOBAL_H__

llea's avatar
llea committed
23 24 25 26 27 28 29 30
#define DEBUG

#ifdef DEBUG
	#define _debug(...)	fprintf(stderr, "[debug] " __VA_ARGS__)
#else
	#define _debug(...)
#endif

savoirfairelinux's avatar
savoirfairelinux committed
31 32 33 34
#ifndef PREFIX
#define PREFIX					"/usr/local"
#endif

llea's avatar
llea committed
35
#define VERSION					"0.3.1"
36
#define PROGNAME				"sflphone"
savoirfairelinux's avatar
savoirfairelinux committed
37 38
#define SKINDIR					"skins"
#define PIXDIR					"pixmaps"
llea's avatar
llea committed
39
#define RINGDIR					"rings"
llea's avatar
llea committed
40
#define CODECDIR				"codecs"
savoirfairelinux's avatar
savoirfairelinux committed
41 42 43 44 45 46 47 48 49 50

#define SFLPHONE_LOGO			"logo_ico.png"
#define TRAY_ICON				"tray-icon.png"
#define PIXMAP_SIGNALISATIONS	"signalisations.png" 
#define PIXMAP_AUDIO			"audio.png" 
#define PIXMAP_VIDEO			"video.png" 
#define PIXMAP_NETWORK			"network.png" 
#define PIXMAP_PREFERENCES		"preferences.png" 
#define PIXMAP_ABOUT			"about.png" 

51
#define MONO					1
savoirfairelinux's avatar
savoirfairelinux committed
52 53 54 55 56 57
#define	SAMPLING_RATE 			8000
#define AMPLITUDE				8192
#define SIZEBUF 				1024*1024
#define	FORMAT					2			// for 16 bits format
#define OCTETS					SAMPLING_RATE * FORMAT	// Number of writen 
														// bytes in buffer
58 59
#define OSS_DRIVER				0
#define ALSA_DRIVER				1
savoirfairelinux's avatar
savoirfairelinux committed
60
#endif	// __GLOBAL_H__