Mercurial > audio-send
view include/AL/alext.h @ 22:616215c81d23
added footnote
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 03 Nov 2011 15:14:44 -0700 |
parents | f9476ff7637e |
children |
line wrap: on
line source
1 /**2 * OpenAL cross platform audio library3 * Copyright (C) 2008 by authors.4 * This library is free software; you can redistribute it and/or5 * modify it under the terms of the GNU Library General Public6 * License as published by the Free Software Foundation; either7 * version 2 of the License, or (at your option) any later version.8 *9 * This library is distributed in the hope that it will be useful,10 * but WITHOUT ANY WARRANTY; without even the implied warranty of11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12 * Library General Public License for more details.13 *14 * You should have received a copy of the GNU Library General Public15 * License along with this library; if not, write to the16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,17 * Boston, MA 02111-1307, USA.18 * Or go to http://www.gnu.org/copyleft/lgpl.html19 */21 #ifndef AL_ALEXT_H22 #define AL_ALEXT_H24 #include <stddef.h>26 #ifdef __cplusplus27 extern "C" {28 #endif30 #ifndef AL_LOKI_IMA_ADPCM_format31 #define AL_LOKI_IMA_ADPCM_format 132 #define AL_FORMAT_IMA_ADPCM_MONO16_EXT 0x1000033 #define AL_FORMAT_IMA_ADPCM_STEREO16_EXT 0x1000134 #endif36 #ifndef AL_LOKI_WAVE_format37 #define AL_LOKI_WAVE_format 138 #define AL_FORMAT_WAVE_EXT 0x1000239 #endif41 #ifndef AL_EXT_vorbis42 #define AL_EXT_vorbis 143 #define AL_FORMAT_VORBIS_EXT 0x1000344 #endif46 #ifndef AL_LOKI_quadriphonic47 #define AL_LOKI_quadriphonic 148 #define AL_FORMAT_QUAD8_LOKI 0x1000449 #define AL_FORMAT_QUAD16_LOKI 0x1000550 #endif52 #ifndef AL_EXT_float3253 #define AL_EXT_float32 154 #define AL_FORMAT_MONO_FLOAT32 0x1001055 #define AL_FORMAT_STEREO_FLOAT32 0x1001156 #endif58 #ifndef AL_EXT_double59 #define AL_EXT_double 160 #define AL_FORMAT_MONO_DOUBLE_EXT 0x1001261 #define AL_FORMAT_STEREO_DOUBLE_EXT 0x1001362 #endif64 #ifndef ALC_LOKI_audio_channel65 #define ALC_LOKI_audio_channel 166 #define ALC_CHAN_MAIN_LOKI 0x50000167 #define ALC_CHAN_PCM_LOKI 0x50000268 #define ALC_CHAN_CD_LOKI 0x50000369 #endif71 #ifndef AL_EXT_MCFORMATS72 #define AL_EXT_MCFORMATS 173 #define AL_FORMAT_QUAD8 0x120474 #define AL_FORMAT_QUAD16 0x120575 #define AL_FORMAT_QUAD32 0x120676 #define AL_FORMAT_REAR8 0x120777 #define AL_FORMAT_REAR16 0x120878 #define AL_FORMAT_REAR32 0x120979 #define AL_FORMAT_51CHN8 0x120A80 #define AL_FORMAT_51CHN16 0x120B81 #define AL_FORMAT_51CHN32 0x120C82 #define AL_FORMAT_61CHN8 0x120D83 #define AL_FORMAT_61CHN16 0x120E84 #define AL_FORMAT_61CHN32 0x120F85 #define AL_FORMAT_71CHN8 0x121086 #define AL_FORMAT_71CHN16 0x121187 #define AL_FORMAT_71CHN32 0x121288 #endif90 #ifndef AL_EXT_MULAW_MCFORMATS91 #define AL_EXT_MULAW_MCFORMATS 192 #define AL_FORMAT_MONO_MULAW 0x1001493 #define AL_FORMAT_STEREO_MULAW 0x1001594 #define AL_FORMAT_QUAD_MULAW 0x1002195 #define AL_FORMAT_REAR_MULAW 0x1002296 #define AL_FORMAT_51CHN_MULAW 0x1002397 #define AL_FORMAT_61CHN_MULAW 0x1002498 #define AL_FORMAT_71CHN_MULAW 0x1002599 #endif101 #ifndef AL_EXT_IMA4102 #define AL_EXT_IMA4 1103 #define AL_FORMAT_MONO_IMA4 0x1300104 #define AL_FORMAT_STEREO_IMA4 0x1301105 #endif107 #ifndef AL_EXT_STATIC_BUFFER108 #define AL_EXT_STATIC_BUFFER 1109 typedef ALvoid (AL_APIENTRY*PFNALBUFFERDATASTATICPROC)(const ALint,ALenum,ALvoid*,ALsizei,ALsizei);110 #ifdef AL_ALEXT_PROTOTYPES111 AL_API ALvoid AL_APIENTRY alBufferDataStatic(const ALint buffer, ALenum format, ALvoid *data, ALsizei len, ALsizei freq);112 #endif113 #endif115 #ifndef ALC_EXT_EFX116 #define ALC_EXT_EFX 1117 #include "efx.h"118 #endif120 #ifndef ALC_EXT_disconnect121 #define ALC_EXT_disconnect 1122 #define ALC_CONNECTED 0x313123 #endif125 #ifndef ALC_EXT_thread_local_context126 #define ALC_EXT_thread_local_context 1127 typedef ALCboolean (ALC_APIENTRY*PFNALCSETTHREADCONTEXTPROC)(ALCcontext *context);128 typedef ALCcontext* (ALC_APIENTRY*PFNALCGETTHREADCONTEXTPROC)(void);129 #ifdef AL_ALEXT_PROTOTYPES130 ALC_API ALCboolean ALC_APIENTRY alcSetThreadContext(ALCcontext *context);131 ALC_API ALCcontext* ALC_APIENTRY alcGetThreadContext(void);132 #endif133 #endif135 #ifndef AL_EXT_source_distance_model136 #define AL_EXT_source_distance_model 1137 #define AL_SOURCE_DISTANCE_MODEL 0x200138 #endif140 #ifndef AL_SOFT_buffer_sub_data141 #define AL_SOFT_buffer_sub_data 1142 #define AL_BYTE_RW_OFFSETS_SOFT 0x1031143 #define AL_SAMPLE_RW_OFFSETS_SOFT 0x1032144 typedef ALvoid (AL_APIENTRY*PFNALBUFFERSUBDATASOFTPROC)(ALuint,ALenum,const ALvoid*,ALsizei,ALsizei);145 #ifdef AL_ALEXT_PROTOTYPES146 AL_API ALvoid AL_APIENTRY alBufferSubDataSOFT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);147 #endif148 #endif150 #ifndef AL_SOFT_loop_points151 #define AL_SOFT_loop_points 1152 #define AL_LOOP_POINTS_SOFT 0x2015153 #endif155 #ifndef AL_EXT_FOLDBACK156 #define AL_EXT_FOLDBACK 1157 #define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK"158 #define AL_FOLDBACK_EVENT_BLOCK 0x4112159 #define AL_FOLDBACK_EVENT_START 0x4111160 #define AL_FOLDBACK_EVENT_STOP 0x4113161 #define AL_FOLDBACK_MODE_MONO 0x4101162 #define AL_FOLDBACK_MODE_STEREO 0x4102163 typedef void (AL_APIENTRY*LPALFOLDBACKCALLBACK)(ALenum,ALsizei);164 typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTART)(ALenum,ALsizei,ALsizei,ALfloat*,LPALFOLDBACKCALLBACK);165 typedef void (AL_APIENTRY*LPALREQUESTFOLDBACKSTOP)(void);166 #ifdef AL_ALEXT_PROTOTYPES167 AL_API void AL_APIENTRY alRequestFoldbackStart(ALenum mode,ALsizei count,ALsizei length,ALfloat *mem,LPALFOLDBACKCALLBACK callback);168 AL_API void AL_APIENTRY alRequestFoldbackStop(void);169 #endif170 #endif172 #ifndef ALC_EXT_DEDICATED173 #define ALC_EXT_DEDICATED 1174 #define AL_DEDICATED_GAIN 0x0001175 #define AL_EFFECT_DEDICATED_DIALOGUE 0x9001176 #define AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT 0x9000177 #endif179 #ifdef __cplusplus180 }181 #endif183 #endif