Mercurial > audio-send
diff include/AL/alext.h @ 0:f9476ff7637e
initial forking of open-al to create multiple listeners
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 25 Oct 2011 13:02:31 -0700 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/include/AL/alext.h Tue Oct 25 13:02:31 2011 -0700 1.3 @@ -0,0 +1,183 @@ 1.4 +/** 1.5 + * OpenAL cross platform audio library 1.6 + * Copyright (C) 2008 by authors. 1.7 + * This library is free software; you can redistribute it and/or 1.8 + * modify it under the terms of the GNU Library General Public 1.9 + * License as published by the Free Software Foundation; either 1.10 + * version 2 of the License, or (at your option) any later version. 1.11 + * 1.12 + * This library is distributed in the hope that it will be useful, 1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1.15 + * Library General Public License for more details. 1.16 + * 1.17 + * You should have received a copy of the GNU Library General Public 1.18 + * License along with this library; if not, write to the 1.19 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 1.20 + * Boston, MA 02111-1307, USA. 1.21 + * Or go to http://www.gnu.org/copyleft/lgpl.html 1.22 + */ 1.23 + 1.24 +#ifndef AL_ALEXT_H 1.25 +#define AL_ALEXT_H 1.26 + 1.27 +#include <stddef.h> 1.28 + 1.29 +#ifdef __cplusplus 1.30 +extern "C" { 1.31 +#endif 1.32 + 1.33 +#ifndef AL_LOKI_IMA_ADPCM_format 1.34 +#define AL_LOKI_IMA_ADPCM_format 1 1.35 +#define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x10000 1.36 +#define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x10001 1.37 +#endif 1.38 + 1.39 +#ifndef AL_LOKI_WAVE_format 1.40 +#define AL_LOKI_WAVE_format 1 1.41 +#define AL_FORMAT_WAVE_EXT 0x10002 1.42 +#endif 1.43 + 1.44 +#ifndef AL_EXT_vorbis 1.45 +#define AL_EXT_vorbis 1 1.46 +#define AL_FORMAT_VORBIS_EXT 0x10003 1.47 +#endif 1.48 + 1.49 +#ifndef AL_LOKI_quadriphonic 1.50 +#define AL_LOKI_quadriphonic 1 1.51 +#define AL_FORMAT_QUAD8_LOKI 0x10004 1.52 +#define AL_FORMAT_QUAD16_LOKI 0x10005 1.53 +#endif 1.54 + 1.55 +#ifndef AL_EXT_float32 1.56 +#define AL_EXT_float32 1 1.57 +#define AL_FORMAT_MONO_FLOAT32 0x10010 1.58 +#define AL_FORMAT_STEREO_FLOAT32 0x10011 1.59 +#endif 1.60 + 1.61 +#ifndef AL_EXT_double 1.62 +#define AL_EXT_double 1 1.63 +#define AL_FORMAT_MONO_DOUBLE_EXT 0x10012 1.64 +#define AL_FORMAT_STEREO_DOUBLE_EXT 0x10013 1.65 +#endif 1.66 + 1.67 +#ifndef ALC_LOKI_audio_channel 1.68 +#define ALC_LOKI_audio_channel 1 1.69 +#define ALC_CHAN_MAIN_LOKI 0x500001 1.70 +#define ALC_CHAN_PCM_LOKI 0x500002 1.71 +#define ALC_CHAN_CD_LOKI 0x500003 1.72 +#endif 1.73 + 1.74 +#ifndef AL_EXT_MCFORMATS 1.75 +#define AL_EXT_MCFORMATS 1 1.76 +#define AL_FORMAT_QUAD8 0x1204 1.77 +#define AL_FORMAT_QUAD16 0x1205 1.78 +#define AL_FORMAT_QUAD32 0x1206 1.79 +#define AL_FORMAT_REAR8 0x1207 1.80 +#define AL_FORMAT_REAR16 0x1208 1.81 +#define AL_FORMAT_REAR32 0x1209 1.82 +#define AL_FORMAT_51CHN8 0x120A 1.83 +#define AL_FORMAT_51CHN16 0x120B 1.84 +#define AL_FORMAT_51CHN32 0x120C 1.85 +#define AL_FORMAT_61CHN8 0x120D 1.86 +#define AL_FORMAT_61CHN16 0x120E 1.87 +#define AL_FORMAT_61CHN32 0x120F 1.88 +#define AL_FORMAT_71CHN8 0x1210 1.89 +#define AL_FORMAT_71CHN16 0x1211 1.90 +#define AL_FORMAT_71CHN32 0x1212 1.91 +#endif 1.92 + 1.93 +#ifndef AL_EXT_MULAW_MCFORMATS 1.94 +#define AL_EXT_MULAW_MCFORMATS 1 1.95 +#define AL_FORMAT_MONO_MULAW 0x10014 1.96 +#define AL_FORMAT_STEREO_MULAW 0x10015 1.97 +#define AL_FORMAT_QUAD_MULAW 0x10021 1.98 +#define AL_FORMAT_REAR_MULAW 0x10022 1.99 +#define AL_FORMAT_51CHN_MULAW 0x10023 1.100 +#define AL_FORMAT_61CHN_MULAW 0x10024 1.101 +#define AL_FORMAT_71CHN_MULAW 0x10025 1.102 +#endif 1.103 + 1.104 +#ifndef AL_EXT_IMA4 1.105 +#define AL_EXT_IMA4 1 1.106 +#define AL_FORMAT_MONO_IMA4 0x1300 1.107 +#define AL_FORMAT_STEREO_IMA4 0x1301 1.108 +#endif 1.109 + 1.110 +#ifndef AL_EXT_STATIC_BUFFER 1.111 +#define AL_EXT_STATIC_BUFFER 1 1.112 +typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei); 1.113 +#ifdef AL_ALEXT_PROTOTYPES 1.114 +AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq); 1.115 +#endif 1.116 +#endif 1.117 + 1.118 +#ifndef ALC_EXT_EFX 1.119 +#define ALC_EXT_EFX 1 1.120 +#include "efx.h" 1.121 +#endif 1.122 + 1.123 +#ifndef ALC_EXT_disconnect 1.124 +#define ALC_EXT_disconnect 1 1.125 +#define ALC_CONNECTED 0x313 1.126 +#endif 1.127 + 1.128 +#ifndef ALC_EXT_thread_local_context 1.129 +#define ALC_EXT_thread_local_context 1 1.130 +typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context); 1.131 +typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void); 1.132 +#ifdef AL_ALEXT_PROTOTYPES 1.133 +ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context); 1.134 +ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void); 1.135 +#endif 1.136 +#endif 1.137 + 1.138 +#ifndef AL_EXT_source_distance_model 1.139 +#define AL_EXT_source_distance_model 1 1.140 +#define AL_SOURCE_DISTANCE_MODEL 0x200 1.141 +#endif 1.142 + 1.143 +#ifndef AL_SOFT_buffer_sub_data 1.144 +#define AL_SOFT_buffer_sub_data 1 1.145 +#define AL_BYTE_RW_OFFSETS_SOFT 0x1031 1.146 +#define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032 1.147 +typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei); 1.148 +#ifdef AL_ALEXT_PROTOTYPES 1.149 +AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length); 1.150 +#endif 1.151 +#endif 1.152 + 1.153 +#ifndef AL_SOFT_loop_points 1.154 +#define AL_SOFT_loop_points 1 1.155 +#define AL_LOOP_POINTS_SOFT 0x2015 1.156 +#endif 1.157 + 1.158 +#ifndef AL_EXT_FOLDBACK 1.159 +#define AL_EXT_FOLDBACK 1 1.160 +#define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK" 1.161 +#define AL_FOLDBACK_EVENT_BLOCK 0x4112 1.162 +#define AL_FOLDBACK_EVENT_START 0x4111 1.163 +#define AL_FOLDBACK_EVENT_STOP 0x4113 1.164 +#define AL_FOLDBACK_MODE_MONO 0x4101 1.165 +#define AL_FOLDBACK_MODE_STEREO 0x4102 1.166 +typedef void (AL_APIENTRY*LPALFOLDBACKCALLBACK)(ALenum,ALsizei); 1.167 +typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTART)(ALenum,ALsizei,ALsizei,ALfloat*,LPALFOLDBACKCALLBACK); 1.168 +typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTOP)(void); 1.169 +#ifdef AL_ALEXT_PROTOTYPES 1.170 +AL_API void AL_APIENTRY alRequestFoldbackStart(ALenum mode,ALsizei count,ALsizei length,ALfloat *mem,LPALFOLDBACKCALLBACK callback); 1.171 +AL_API void AL_APIENTRY alRequestFoldbackStop(void); 1.172 +#endif 1.173 +#endif 1.174 + 1.175 +#ifndef ALC_EXT_DEDICATED 1.176 +#define ALC_EXT_DEDICATED 1 1.177 +#define AL_DEDICATED_GAIN 0x0001 1.178 +#define AL_EFFECT_DEDICATED_DIALOGUE 0x9001 1.179 +#define AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT 0x9000 1.180 +#endif 1.181 + 1.182 +#ifdef __cplusplus 1.183 +} 1.184 +#endif 1.185 + 1.186 +#endif