Make a couple more operator bools explicit
[openal-soft.git] / alc / inprogext.h
blob99d997f5a01b29100c36070c42109c93cf3cea76
1 #ifndef INPROGEXT_H
2 #define INPROGEXT_H
4 #include "AL/al.h"
5 #include "AL/alc.h"
6 #include "AL/alext.h"
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 #ifndef AL_SOFT_map_buffer
13 #define AL_SOFT_map_buffer 1
14 typedef unsigned int ALbitfieldSOFT;
15 #define AL_MAP_READ_BIT_SOFT 0x00000001
16 #define AL_MAP_WRITE_BIT_SOFT 0x00000002
17 #define AL_MAP_PERSISTENT_BIT_SOFT 0x00000004
18 #define AL_PRESERVE_DATA_BIT_SOFT 0x00000008
19 typedef void (AL_APIENTRY*LPALBUFFERSTORAGESOFT)(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq, ALbitfieldSOFT flags);
20 typedef void* (AL_APIENTRY*LPALMAPBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access);
21 typedef void (AL_APIENTRY*LPALUNMAPBUFFERSOFT)(ALuint buffer);
22 typedef void (AL_APIENTRY*LPALFLUSHMAPPEDBUFFERSOFT)(ALuint buffer, ALsizei offset, ALsizei length);
23 #ifdef AL_ALEXT_PROTOTYPES
24 AL_API void AL_APIENTRY alBufferStorageSOFT(ALuint buffer, ALenum format, const ALvoid *data, ALsizei size, ALsizei freq, ALbitfieldSOFT flags);
25 AL_API void* AL_APIENTRY alMapBufferSOFT(ALuint buffer, ALsizei offset, ALsizei length, ALbitfieldSOFT access);
26 AL_API void AL_APIENTRY alUnmapBufferSOFT(ALuint buffer);
27 AL_API void AL_APIENTRY alFlushMappedBufferSOFT(ALuint buffer, ALsizei offset, ALsizei length);
28 #endif
29 #endif
31 #ifndef AL_SOFT_callback_buffer
32 #define AL_SOFT_callback_buffer
33 #define AL_BUFFER_CALLBACK_FUNCTION_SOFT 0x19A0
34 #define AL_BUFFER_CALLBACK_USER_PARAM_SOFT 0x19A1
35 typedef ALsizei (AL_APIENTRY*ALBUFFERCALLBACKTYPESOFT)(ALvoid *userptr, ALvoid *sampledata, ALsizei numbytes);
36 typedef void (AL_APIENTRY*LPALBUFFERCALLBACKSOFT)(ALuint buffer, ALenum format, ALsizei freq, ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr, ALbitfieldSOFT flags);
37 typedef void (AL_APIENTRY*LPALGETBUFFERPTRSOFT)(ALuint buffer, ALenum param, ALvoid **value);
38 typedef void (AL_APIENTRY*LPALGETBUFFER3PTRSOFT)(ALuint buffer, ALenum param, ALvoid **value1, ALvoid **value2, ALvoid **value3);
39 typedef void (AL_APIENTRY*LPALGETBUFFERPTRVSOFT)(ALuint buffer, ALenum param, ALvoid **values);
40 #ifdef AL_ALEXT_PROTOTYPES
41 AL_API void AL_APIENTRY alBufferCallbackSOFT(ALuint buffer, ALenum format, ALsizei freq, ALBUFFERCALLBACKTYPESOFT callback, ALvoid *userptr, ALbitfieldSOFT flags);
42 AL_API void AL_APIENTRY alGetBufferPtrSOFT(ALuint buffer, ALenum param, ALvoid **ptr);
43 AL_API void AL_APIENTRY alGetBuffer3PtrSOFT(ALuint buffer, ALenum param, ALvoid **ptr0, ALvoid **ptr1, ALvoid **ptr2);
44 AL_API void AL_APIENTRY alGetBufferPtrvSOFT(ALuint buffer, ALenum param, ALvoid **ptr);
45 #endif
46 #endif
48 #ifndef AL_SOFT_bformat_hoa
49 #define AL_SOFT_bformat_hoa
50 #define AL_UNPACK_AMBISONIC_ORDER_SOFT 0x199D
51 #endif
53 #ifndef AL_SOFT_convolution_reverb
54 #define AL_SOFT_convolution_reverb
55 #define AL_EFFECT_CONVOLUTION_REVERB_SOFT 0xA000
56 #define AL_EFFECTSLOT_STATE_SOFT 0x199D
57 typedef void (AL_APIENTRY*LPALAUXILIARYEFFECTSLOTPLAYSOFT)(ALuint slotid);
58 typedef void (AL_APIENTRY*LPALAUXILIARYEFFECTSLOTPLAYVSOFT)(ALsizei n, const ALuint *slotids);
59 typedef void (AL_APIENTRY*LPALAUXILIARYEFFECTSLOTSTOPSOFT)(ALuint slotid);
60 typedef void (AL_APIENTRY*LPALAUXILIARYEFFECTSLOTSTOPVSOFT)(ALsizei n, const ALuint *slotids);
61 #ifdef AL_ALEXT_PROTOTYPES
62 AL_API void AL_APIENTRY alAuxiliaryEffectSlotPlaySOFT(ALuint slotid);
63 AL_API void AL_APIENTRY alAuxiliaryEffectSlotPlayvSOFT(ALsizei n, const ALuint *slotids);
64 AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopSOFT(ALuint slotid);
65 AL_API void AL_APIENTRY alAuxiliaryEffectSlotStopvSOFT(ALsizei n, const ALuint *slotids);
66 #endif
67 #endif
69 #ifndef ALC_SOFT_reopen_device
70 #define ALC_SOFT_reopen_device
71 typedef ALCboolean (ALC_APIENTRY*LPALCREOPENDEVICESOFT)(ALCdevice *device,
72 const ALCchar *deviceName, const ALCint *attribs);
73 #ifdef AL_ALEXT_PROTOTYPES
74 ALCboolean ALC_APIENTRY alcReopenDeviceSOFT(ALCdevice *device, const ALCchar *deviceName,
75 const ALCint *attribs);
76 #endif
77 #endif
79 #ifndef AL_SOFT_UHJ
80 #define AL_SOFT_UHJ
81 #define AL_FORMAT_UHJ2CHN8_SOFT 0x19A2
82 #define AL_FORMAT_UHJ2CHN16_SOFT 0x19A3
83 #define AL_FORMAT_UHJ2CHN_FLOAT32_SOFT 0x19A4
84 #define AL_FORMAT_UHJ3CHN8_SOFT 0x19A5
85 #define AL_FORMAT_UHJ3CHN16_SOFT 0x19A6
86 #define AL_FORMAT_UHJ3CHN_FLOAT32_SOFT 0x19A7
87 #define AL_FORMAT_UHJ4CHN8_SOFT 0x19A8
88 #define AL_FORMAT_UHJ4CHN16_SOFT 0x19A9
89 #define AL_FORMAT_UHJ4CHN_FLOAT32_SOFT 0x19AA
91 #define AL_STEREO_MODE_SOFT 0x19B0
92 #define AL_NORMAL_SOFT 0x0000
93 #define AL_SUPER_STEREO_SOFT 0x0001
94 #define AL_SUPER_STEREO_WIDTH_SOFT 0x19B1
95 #endif
97 #ifndef AL_SOFT_hold_on_disconnect
98 #define AL_SOFT_hold_on_disconnect
99 #define AL_STOP_SOURCES_ON_DISCONNECT_SOFT 0x19AB
100 #endif
102 #ifndef ALC_SOFT_output_mode
103 #define ALC_SOFT_output_mode
104 #define ALC_OUTPUT_MODE_SOFT 0x19AC
105 #define ALC_NORMAL_SOFT 0x19AD
106 #define ALC_STEREO_UHJ_SOFT 0x19AE
107 /*#define ALC_HRTF_SOFT 0x1992*/
108 #define ALC_ANY_SOFT 0x19AF
109 #endif
111 #ifdef __cplusplus
112 } /* extern "C" */
113 #endif
115 #endif /* INPROGEXT_H */