openalbridge/globals.h
changeset 2215 1d78579e06c2
parent 2214 eacb5b19d587
child 2216 82e7da49c26a
equal deleted inserted replaced
2214:eacb5b19d587 2215:1d78579e06c2
    19 #ifndef _OALB_GLOBALS_H
    19 #ifndef _OALB_GLOBALS_H
    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 
    25 
    25 #ifndef _WIN32
    26 #ifndef _WIN32
    26 #include <pthread.h>
    27 #include <pthread.h>
    27 #else
    28 #else
    28 #include <process.h>
    29 #include <process.h>
    74 #endif 
    75 #endif 
    75 	
    76 	
    76 	/*data type for WAV header*/
    77 	/*data type for WAV header*/
    77 #pragma pack(1)
    78 #pragma pack(1)
    78 	typedef struct _WAV_header_t {
    79 	typedef struct _WAV_header_t {
    79 		int ChunkID;
    80 		uint32_t ChunkID;
    80 		int ChunkSize;
    81 		uint32_t ChunkSize;
    81 		int Format;
    82 		uint32_t Format;
    82 		int Subchunk1ID;
    83 		uint32_t Subchunk1ID;
    83 		int Subchunk1Size;
    84 		uint32_t Subchunk1Size;
    84 		short int AudioFormat;
    85 		uint16_t AudioFormat;
    85 		short int NumChannels;
    86 		uint16_t NumChannels;
    86 		int SampleRate;
    87 		uint32_t SampleRate;
    87 		int ByteRate;
    88 		uint32_t ByteRate;
    88 		short int BlockAlign;
    89 		uint16_t BlockAlign;
    89 		short int BitsPerSample;
    90 		uint16_t BitsPerSample;
    90 		int Subchunk2ID;
    91 		uint32_t Subchunk2ID;
    91 		int Subchunk2Size;
    92 		uint32_t Subchunk2Size;
    92 	} WAV_header_t;
    93 	} WAV_header_t;
    93 #pragma pack()
    94 #pragma pack()
    94 	
    95 	
    95 	/*data type for passing data between threads*/
    96 	/*data type for passing data between threads*/
    96 	typedef struct _fade_t {
    97 	typedef struct _fade_t {