6 #if !(defined(__APPLE__) || defined(_WIN32))
12 #endif // !__APPLE__ && !_WIN32
24 #define OpenAL_ErrorCheck( x, y ) do { \
26 const char *error_text = openal_error_string(0); \
27 if ( error_text != NULL ) { \
28 nprintf(("Warning", "SOUND: %s:%d - OpenAL error = '%s'\n", __FILE__, __LINE__, error_text)); \
34 #define OpenAL_ErrorPrint( x ) do { \
36 const char *error_text = openal_error_string(0); \
37 if ( error_text != NULL ) { \
38 nprintf(("Sound", "OpenAL ERROR: \"%s\" in %s, line %i\n", error_text, __FILE__, __LINE__)); \
43 #define OpenAL_C_ErrorCheck( x, y ) do { \
45 const char *error_text = openal_error_string(1); \
46 if ( error_text != NULL ) { \
47 nprintf(("Warning", "SOUND: %s:%d - OpenAL error = '%s'\n", __FILE__, __LINE__, error_text)); \
53 #define OpenAL_C_ErrorPrint( x ) do { \
55 const char *error_text = openal_error_string(1); \
56 if ( error_text != NULL ) { \
57 nprintf(("Sound", "OpenAL ERROR: \"%s\" in %s, line %i\n", error_text, __FILE__, __LINE__)); \
64 #define AL_BYTE_LOKI 0x100C
68 #ifndef AL_BYTE_OFFSET
69 #define AL_BYTE_OFFSET 0x1026
74 #define AL_FILTER_TYPE 0x8001
75 #define AL_EFFECT_TYPE 0x8001
76 #define AL_FILTER_NULL 0x0000
77 #define AL_FILTER_LOWPASS 0x0001
78 #define AL_EFFECT_NULL 0x0000
79 #define AL_EFFECT_EAXREVERB 0x8000
80 #define AL_EFFECT_REVERB 0x0001
81 #define AL_EFFECT_ECHO 0x0004
82 #define ALC_EFX_MAJOR_VERSION 0x20001
83 #define ALC_EFX_MINOR_VERSION 0x20002
84 #define ALC_MAX_AUXILIARY_SENDS 0x20003
86 #define AL_AUXILIARY_SEND_FILTER 0x20006
88 #define AL_EAXREVERB_DENSITY 0x0001
89 #define AL_EAXREVERB_DIFFUSION 0x0002
90 #define AL_EAXREVERB_GAIN 0x0003
91 #define AL_EAXREVERB_GAINHF 0x0004
92 #define AL_EAXREVERB_GAINLF 0x0005
93 #define AL_EAXREVERB_DECAY_TIME 0x0006
94 #define AL_EAXREVERB_DECAY_HFRATIO 0x0007
95 #define AL_EAXREVERB_DECAY_LFRATIO 0x0008
96 #define AL_EAXREVERB_REFLECTIONS_GAIN 0x0009
97 #define AL_EAXREVERB_REFLECTIONS_DELAY 0x000A
98 #define AL_EAXREVERB_REFLECTIONS_PAN 0x000B
99 #define AL_EAXREVERB_LATE_REVERB_GAIN 0x000C
100 #define AL_EAXREVERB_LATE_REVERB_DELAY 0x000D
101 #define AL_EAXREVERB_LATE_REVERB_PAN 0x000E
102 #define AL_EAXREVERB_ECHO_TIME 0x000F
103 #define AL_EAXREVERB_ECHO_DEPTH 0x0010
104 #define AL_EAXREVERB_MODULATION_TIME 0x0011
105 #define AL_EAXREVERB_MODULATION_DEPTH 0x0012
106 #define AL_EAXREVERB_AIR_ABSORPTION_GAINHF 0x0013
107 #define AL_EAXREVERB_HFREFERENCE 0x0014
108 #define AL_EAXREVERB_LFREFERENCE 0x0015
109 #define AL_EAXREVERB_ROOM_ROLLOFF_FACTOR 0x0016
110 #define AL_EAXREVERB_DECAY_HFLIMIT 0x0017
112 #define AL_EFFECTSLOT_NULL 0x0000
113 #define AL_EFFECTSLOT_EFFECT 0x0001
116 #ifndef AL_EXT_float32
117 #define AL_EXT_float32 1
118 #define AL_FORMAT_MONO_FLOAT32 0x10010
119 #define AL_FORMAT_STEREO_FLOAT32 0x10011
ALenum openal_get_format(ALint bits, ALint n_channels)
ALuint *typedef ALuint *typedef ALenum
std::basic_string< char, std::char_traits< char >, std::allocator< char > > SCP_string
bool openal_init_device(SCP_string *playback, SCP_string *capture)
ALuint *typedef ALuint *typedef ALint
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
const char * openal_error_string(int get_alc=0)