global.h 1.94 KB
Newer Older
savoirfairelinux's avatar
savoirfairelinux committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/**
 *  Copyright (C) 2004 Savoir-Faire Linux inc.
 *  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__

#ifndef PREFIX
#define PREFIX					"/usr/local"
#endif

llea's avatar
llea committed
27
#define VERSION					"0.3"
28
#define PROGNAME				"sflphone"
savoirfairelinux's avatar
savoirfairelinux committed
29 30
#define SKINDIR					"skins"
#define PIXDIR					"pixmaps"
llea's avatar
llea committed
31
#define RINGDIR					"rings"
savoirfairelinux's avatar
savoirfairelinux committed
32 33 34 35 36 37 38 39 40 41

#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" 

42
#define MONO					1
savoirfairelinux's avatar
savoirfairelinux committed
43 44 45 46 47 48
#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
llea's avatar
llea committed
49 50
#define	YES						0
#define NO						1
51 52
#define OSS_DRIVER				0
#define ALSA_DRIVER				1
savoirfairelinux's avatar
savoirfairelinux committed
53
#endif	// __GLOBAL_H__