author | koda |
Mon, 31 May 2010 19:33:42 +0000 | |
changeset 3487 | b1d00f1950c8 |
parent 3362 | 8d3b4d19ce27 |
child 3505 | ada9f697eb11 |
permissions | -rw-r--r-- |
3362
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
1 |
/* |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
2 |
* OpenAL Bridge - a simple portable library for OpenAL interface |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
3 |
* Copyright (c) 2009 Vittorio Giovara <vittorio.giovara@gmail.com> |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
4 |
* |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
6 |
* it under the terms of the GNU Lesser General Public License as published by |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
7 |
* the Free Software Foundation; version 2 of the License |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
8 |
* |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
12 |
* GNU Lesser General Public License for more details. |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
13 |
* |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU Lesser General Public License |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
17 |
*/ |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
18 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
19 |
#include <stdint.h> |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
20 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
21 |
#ifndef _OALB_INTERFACE_TYPES_H |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
22 |
#define _OALB_INTERFACE_TYPES_H |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
23 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
24 |
enum al_fade_enum {AL_FADE_IN, AL_FADE_OUT}; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
25 |
typedef enum al_fade_enum al_fade_t; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
26 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
27 |
//data type for passing data between threads |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
28 |
#pragma pack(1) |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
29 |
typedef struct _fade_t { |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
30 |
uint32_t index; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
31 |
uint16_t quantity; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
32 |
al_fade_t type; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
33 |
} fade_t; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
34 |
#pragma pack() |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
35 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
36 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
37 |
//data type for WAV header |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
38 |
#pragma pack(1) |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
39 |
typedef struct _WAV_header_t { |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
40 |
uint32_t ChunkID; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
41 |
uint32_t ChunkSize; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
42 |
uint32_t Format; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
43 |
uint32_t Subchunk1ID; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
44 |
uint32_t Subchunk1Size; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
45 |
uint16_t AudioFormat; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
46 |
uint16_t NumChannels; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
47 |
uint32_t SampleRate; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
48 |
uint32_t ByteRate; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
49 |
uint16_t BlockAlign; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
50 |
uint16_t BitsPerSample; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
51 |
uint32_t Subchunk2ID; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
52 |
uint32_t Subchunk2Size; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
53 |
} WAV_header_t; |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
54 |
#pragma pack() |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
55 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
56 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
57 |
#ifdef __CPLUSPLUS |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
58 |
} |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
59 |
#endif |
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
60 |
|
8d3b4d19ce27
in reprocessing openalbridge, a lot of code cleanup and simplification
koda
parents:
diff
changeset
|
61 |
#endif /*_OALB_INTERFACE_TYPES_H*/ |