openalbridge/common.h
changeset 2494 1e10a47cabea
parent 2458 14296bd366d2
equal deleted inserted replaced
2493:08313e4080e4 2494:1e10a47cabea
    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
    21 #ifndef _COMMON_H
    22 #define COMMON_H
    22 #define _COMMON_H
    23 
    23 
    24 #include <stdio.h>
    24 #include <stdio.h>
    25 #include <stdlib.h>
    25 #include <stdlib.h>
    26 #include <stdint.h>
    26 #include <stdint.h>
    27 #include <string.h>
    27 #include <string.h>
   122 } WAV_header_t;
   122 } WAV_header_t;
   123 #pragma pack()
   123 #pragma pack()
   124 
   124 
   125 #pragma pack(1)
   125 #pragma pack(1)
   126 typedef struct _SSound_t {
   126 typedef struct _SSound_t {
   127         int source;
   127         int isLoaded;
   128         char Filename[256];
   128         int sourceIndex;
       
   129         char *filename;
   129         ALuint Buffer;
   130         ALuint Buffer;
   130 } SSound_t;
   131 } SSound_t;
   131 #pragma pack()
   132 #pragma pack()
   132 
   133 
   133 #endif
   134 /*data type for passing data between threads*/
       
   135 #pragma pack(1)
       
   136 typedef struct _fade_t {
       
   137         uint32_t index;
       
   138         uint16_t quantity;
       
   139 } fade_t;
       
   140 #pragma pack()
   134 
   141 
       
   142 #define FADE_IN  0
       
   143 #define FADE_OUT 1
       
   144 
       
   145 #endif /* _COMMON_H*/