equal
deleted
inserted
replaced
21 |
21 |
22 #include <stdio.h> |
22 #include <stdio.h> |
23 #include <stdlib.h> |
23 #include <stdlib.h> |
24 |
24 |
25 #ifndef _WIN32 |
25 #ifndef _WIN32 |
26 #include <stdint.h> |
|
27 #include <pthread.h> |
26 #include <pthread.h> |
28 #else |
27 #else |
29 #include <process.h> |
28 #include <process.h> |
30 #include "winstdint.h" |
|
31 #endif |
29 #endif |
32 |
30 |
33 #include "al.h" |
31 #include "al.h" |
34 |
32 |
35 #ifndef _SLEEP_H |
33 #ifndef _SLEEP_H |
76 #endif |
74 #endif |
77 |
75 |
78 /*data type for WAV header*/ |
76 /*data type for WAV header*/ |
79 #pragma pack(1) |
77 #pragma pack(1) |
80 typedef struct _WAV_header_t { |
78 typedef struct _WAV_header_t { |
81 uint32_t ChunkID; |
79 int ChunkID; |
82 uint32_t ChunkSize; |
80 int ChunkSize; |
83 uint32_t Format; |
81 int Format; |
84 uint32_t Subchunk1ID; |
82 int Subchunk1ID; |
85 uint32_t Subchunk1Size; |
83 int Subchunk1Size; |
86 uint16_t AudioFormat; |
84 short int AudioFormat; |
87 uint16_t NumChannels; |
85 short int NumChannels; |
88 uint32_t SampleRate; |
86 int SampleRate; |
89 uint32_t ByteRate; |
87 int ByteRate; |
90 uint16_t BlockAlign; |
88 short int BlockAlign; |
91 uint16_t BitsPerSample; |
89 short int BitsPerSample; |
92 uint32_t Subchunk2ID; |
90 int Subchunk2ID; |
93 uint32_t Subchunk2Size; |
91 int Subchunk2Size; |
94 } WAV_header_t; |
92 } WAV_header_t; |
95 #pragma pack() |
93 #pragma pack() |
96 |
94 |
97 /*data type for passing data between threads*/ |
95 /*data type for passing data between threads*/ |
98 typedef struct _fade_t { |
96 typedef struct _fade_t { |