equal
deleted
inserted
replaced
16 * along with this program; if not, write to the Free Software |
16 * along with this program; if not, write to the Free Software |
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
18 */ |
18 */ |
19 |
19 |
20 |
20 |
|
21 #ifndef COMMON_H |
|
22 #define COMMON_H |
21 |
23 |
22 #include <stdio.h> |
24 #include <stdio.h> |
23 #include <stdlib.h> |
25 #include <stdlib.h> |
24 #include <stdint.h> |
26 #include <stdint.h> |
25 #include <string.h> |
27 #include <string.h> |
36 #define syslog(x,y) fprintf(stderr,y) |
38 #define syslog(x,y) fprintf(stderr,y) |
37 #define LOG_INFO 6 |
39 #define LOG_INFO 6 |
38 #define LOG_ERR 3 |
40 #define LOG_ERR 3 |
39 #endif |
41 #endif |
40 |
42 |
41 #ifndef COMMON_H |
|
42 #define COMMON_H |
|
43 |
43 |
44 /* magics */ |
44 /* magics */ |
45 #define OGG_FILE_FORMAT 0x4F676753 |
45 #define OGG_FILE_FORMAT 0x4F676753 |
46 #define WAV_FILE_FORMAT 0x52494646 |
46 #define WAV_FILE_FORMAT 0x52494646 |
47 #define WAV_HEADER_SUBCHUNK2ID 0x64617461 |
47 #define WAV_HEADER_SUBCHUNK2ID 0x64617461 |
48 |
48 |
|
49 /* max allocations */ |
49 #define MAX_SOUNDS 1024 |
50 #define MAX_SOUNDS 1024 |
50 #define MAX_SOURCES 16 |
51 #define MAX_SOURCES 16 |
51 |
52 |
52 /* check compiler requirements */ /*FIXME*/ |
53 /* check compiler requirements */ /*FIXME*/ |
53 #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) |
54 #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) |