--- a/openalbridge/globals.h Tue Jun 30 14:59:25 2009 +0000
+++ b/openalbridge/globals.h Tue Jun 30 15:59:02 2009 +0000
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#ifndef _WIN32
#include <pthread.h>
@@ -76,19 +77,19 @@
/*data type for WAV header*/
#pragma pack(1)
typedef struct _WAV_header_t {
- int ChunkID;
- int ChunkSize;
- int Format;
- int Subchunk1ID;
- int Subchunk1Size;
- short int AudioFormat;
- short int NumChannels;
- int SampleRate;
- int ByteRate;
- short int BlockAlign;
- short int BitsPerSample;
- int Subchunk2ID;
- int Subchunk2Size;
+ uint32_t ChunkID;
+ uint32_t ChunkSize;
+ uint32_t Format;
+ uint32_t Subchunk1ID;
+ uint32_t Subchunk1Size;
+ uint16_t AudioFormat;
+ uint16_t NumChannels;
+ uint32_t SampleRate;
+ uint32_t ByteRate;
+ uint16_t BlockAlign;
+ uint16_t BitsPerSample;
+ uint32_t Subchunk2ID;
+ uint32_t Subchunk2Size;
} WAV_header_t;
#pragma pack()