openalbridge/globals.h
changeset 2418 538a777f90c4
parent 2417 f7ed1ea25050
child 2419 dbaaba09146d
equal deleted inserted replaced
2417:f7ed1ea25050 2418:538a777f90c4
    20 #define _OALB_GLOBALS_H
    20 #define _OALB_GLOBALS_H
    21 
    21 
    22 #include <stdio.h>
    22 #include <stdio.h>
    23 #include <stdlib.h>
    23 #include <stdlib.h>
    24 #include <stdint.h>
    24 #include <stdint.h>
       
    25 #include <stdarg.h>
       
    26 #include <syslog.h>
    25 #include <string.h>
    27 #include <string.h>
       
    28 #include <errno.h>
    26 
    29 
    27 #ifndef _WIN32
    30 #ifndef _WIN32
    28 #include <pthread.h>
    31 #include <pthread.h>
    29 #else
    32 #else
    30 #include <process.h>
    33 #include <process.h>
    31 #endif
    34 #endif
    32 
    35 
    33 #include "al.h"
    36 #include "al.h"
       
    37 #include "errlib.h"
    34 
    38 
       
    39 
       
    40 #ifdef TRACE
       
    41 #ifndef DEBUG
       
    42 #define DEBUG
       
    43 #endif
       
    44 #endif
    35 
    45 
    36 /** 1.0 02/03/10 - Defines cross-platform sleep, usleep, etc. [Wu Yongwei] **/
    46 /** 1.0 02/03/10 - Defines cross-platform sleep, usleep, etc. [Wu Yongwei] **/
    37 #ifndef _SLEEP_H
    47 #ifndef _SLEEP_H
    38 #define _SLEEP_H
    48 #define _SLEEP_H
    39 #ifdef _WIN32
    49 #ifdef _WIN32
   124 #define WAV_FILE_FORMAT 0x52494646
   134 #define WAV_FILE_FORMAT 0x52494646
   125 #define WAV_HEADER_SUBCHUNK2ID 0x64617461
   135 #define WAV_HEADER_SUBCHUNK2ID 0x64617461
   126       
   136       
   127 
   137 
   128 /*other defines*/
   138 /*other defines*/
   129 #define FADE_IN	 0
   139 #define FADE_IN  0
   130 #define FADE_OUT 1
   140 #define FADE_OUT 1
       
   141 
       
   142         char *prog;
   131         
   143         
   132 #ifdef __CPLUSPLUS
   144 #ifdef __CPLUSPLUS
   133 }
   145 }
   134 #endif
   146 #endif
   135 
   147