"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.09.0-win64/inc/AL/alext.bi" (1 Jan 2022, 9618 Bytes) of package /windows/misc/FreeBASIC-1.09.0-win64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' FreeBASIC binding for openal-soft-1.16.0
    2 ''
    3 '' based on the C header files:
    4 ''
    5 ''   OpenAL cross platform audio library
    6 ''   Copyright (C) 2008 by authors.
    7 ''   This library is free software; you can redistribute it and/or
    8 ''    modify it under the terms of the GNU Library General Public
    9 ''    License as published by the Free Software Foundation; either
   10 ''    version 2 of the License, or (at your option) any later version.
   11 ''
   12 ''   This library is distributed in the hope that it will be useful,
   13 ''    but WITHOUT ANY WARRANTY; without even the implied warranty of
   14 ''    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   15 ''    Library General Public License for more details.
   16 ''
   17 ''   You should have received a copy of the GNU Library General Public
   18 ''    License along with this library; if not, write to the
   19 ''    Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
   20 ''    Boston, MA  02111-1301, USA.
   21 ''   Or go to http://www.gnu.org/copyleft/lgpl.html
   22 ''
   23 '' translated to FreeBASIC by:
   24 ''   Copyright © 2015 FreeBASIC development team
   25 
   26 #pragma once
   27 
   28 #include once "crt/stddef.bi"
   29 #include once "alc.bi"
   30 #include once "al.bi"
   31 #include once "efx.bi"
   32 
   33 extern "C"
   34 
   35 #define AL_ALEXT_H
   36 const AL_LOKI_IMA_ADPCM_format = 1
   37 const AL_FORMAT_IMA_ADPCM_MONO16_EXT = &h10000
   38 const AL_FORMAT_IMA_ADPCM_STEREO16_EXT = &h10001
   39 const AL_LOKI_WAVE_format = 1
   40 const AL_FORMAT_WAVE_EXT = &h10002
   41 const AL_EXT_vorbis = 1
   42 const AL_FORMAT_VORBIS_EXT = &h10003
   43 const AL_LOKI_quadriphonic = 1
   44 const AL_FORMAT_QUAD8_LOKI = &h10004
   45 const AL_FORMAT_QUAD16_LOKI = &h10005
   46 const AL_EXT_float32 = 1
   47 const AL_FORMAT_MONO_FLOAT32 = &h10010
   48 const AL_FORMAT_STEREO_FLOAT32 = &h10011
   49 const AL_EXT_double = 1
   50 const AL_FORMAT_MONO_DOUBLE_EXT = &h10012
   51 const AL_FORMAT_STEREO_DOUBLE_EXT = &h10013
   52 const AL_EXT_MULAW = 1
   53 const AL_FORMAT_MONO_MULAW_EXT = &h10014
   54 const AL_FORMAT_STEREO_MULAW_EXT = &h10015
   55 const AL_EXT_ALAW = 1
   56 const AL_FORMAT_MONO_ALAW_EXT = &h10016
   57 const AL_FORMAT_STEREO_ALAW_EXT = &h10017
   58 const ALC_LOKI_audio_channel = 1
   59 const ALC_CHAN_MAIN_LOKI = &h500001
   60 const ALC_CHAN_PCM_LOKI = &h500002
   61 const ALC_CHAN_CD_LOKI = &h500003
   62 const AL_EXT_MCFORMATS = 1
   63 const AL_FORMAT_QUAD8 = &h1204
   64 const AL_FORMAT_QUAD16 = &h1205
   65 const AL_FORMAT_QUAD32 = &h1206
   66 const AL_FORMAT_REAR8 = &h1207
   67 const AL_FORMAT_REAR16 = &h1208
   68 const AL_FORMAT_REAR32 = &h1209
   69 const AL_FORMAT_51CHN8 = &h120A
   70 const AL_FORMAT_51CHN16 = &h120B
   71 const AL_FORMAT_51CHN32 = &h120C
   72 const AL_FORMAT_61CHN8 = &h120D
   73 const AL_FORMAT_61CHN16 = &h120E
   74 const AL_FORMAT_61CHN32 = &h120F
   75 const AL_FORMAT_71CHN8 = &h1210
   76 const AL_FORMAT_71CHN16 = &h1211
   77 const AL_FORMAT_71CHN32 = &h1212
   78 const AL_EXT_MULAW_MCFORMATS = 1
   79 const AL_FORMAT_MONO_MULAW = &h10014
   80 const AL_FORMAT_STEREO_MULAW = &h10015
   81 const AL_FORMAT_QUAD_MULAW = &h10021
   82 const AL_FORMAT_REAR_MULAW = &h10022
   83 const AL_FORMAT_51CHN_MULAW = &h10023
   84 const AL_FORMAT_61CHN_MULAW = &h10024
   85 const AL_FORMAT_71CHN_MULAW = &h10025
   86 const AL_EXT_IMA4 = 1
   87 const AL_FORMAT_MONO_IMA4 = &h1300
   88 const AL_FORMAT_STEREO_IMA4 = &h1301
   89 const AL_EXT_STATIC_BUFFER = 1
   90 type PFNALBUFFERDATASTATICPROC as sub(byval as const ALint, byval as ALenum, byval as any ptr, byval as ALsizei, byval as ALsizei)
   91 const ALC_EXT_EFX = 1
   92 const ALC_EXT_disconnect = 1
   93 const ALC_CONNECTED = &h313
   94 const ALC_EXT_thread_local_context = 1
   95 type PFNALCSETTHREADCONTEXTPROC as function(byval context as ALCcontext ptr) as ALCboolean
   96 type PFNALCGETTHREADCONTEXTPROC as function() as ALCcontext ptr
   97 const AL_EXT_source_distance_model = 1
   98 const AL_SOURCE_DISTANCE_MODEL = &h200
   99 const AL_SOFT_buffer_sub_data = 1
  100 const AL_BYTE_RW_OFFSETS_SOFT = &h1031
  101 const AL_SAMPLE_RW_OFFSETS_SOFT = &h1032
  102 type PFNALBUFFERSUBDATASOFTPROC as sub(byval as ALuint, byval as ALenum, byval as const any ptr, byval as ALsizei, byval as ALsizei)
  103 const AL_SOFT_loop_points = 1
  104 const AL_LOOP_POINTS_SOFT = &h2015
  105 const AL_EXT_FOLDBACK = 1
  106 #define AL_EXT_FOLDBACK_NAME "AL_EXT_FOLDBACK"
  107 const AL_FOLDBACK_EVENT_BLOCK = &h4112
  108 const AL_FOLDBACK_EVENT_START = &h4111
  109 const AL_FOLDBACK_EVENT_STOP = &h4113
  110 const AL_FOLDBACK_MODE_MONO = &h4101
  111 const AL_FOLDBACK_MODE_STEREO = &h4102
  112 
  113 type LPALFOLDBACKCALLBACK as sub(byval as ALenum, byval as ALsizei)
  114 type LPALREQUESTFOLDBACKSTART as sub(byval as ALenum, byval as ALsizei, byval as ALsizei, byval as ALfloat ptr, byval as LPALFOLDBACKCALLBACK)
  115 type LPALREQUESTFOLDBACKSTOP as sub()
  116 
  117 const ALC_EXT_DEDICATED = 1
  118 const AL_DEDICATED_GAIN = &h0001
  119 const AL_EFFECT_DEDICATED_DIALOGUE = &h9001
  120 const AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT = &h9000
  121 const AL_SOFT_buffer_samples = 1
  122 const AL_MONO_SOFT = &h1500
  123 const AL_STEREO_SOFT = &h1501
  124 const AL_REAR_SOFT = &h1502
  125 const AL_QUAD_SOFT = &h1503
  126 const AL_5POINT1_SOFT = &h1504
  127 const AL_6POINT1_SOFT = &h1505
  128 const AL_7POINT1_SOFT = &h1506
  129 const AL_BYTE_SOFT = &h1400
  130 const AL_UNSIGNED_BYTE_SOFT = &h1401
  131 const AL_SHORT_SOFT = &h1402
  132 const AL_UNSIGNED_SHORT_SOFT = &h1403
  133 const AL_INT_SOFT = &h1404
  134 const AL_UNSIGNED_INT_SOFT = &h1405
  135 const AL_FLOAT_SOFT = &h1406
  136 const AL_DOUBLE_SOFT = &h1407
  137 const AL_BYTE3_SOFT = &h1408
  138 const AL_UNSIGNED_BYTE3_SOFT = &h1409
  139 const AL_MONO8_SOFT = &h1100
  140 const AL_MONO16_SOFT = &h1101
  141 const AL_MONO32F_SOFT = &h10010
  142 const AL_STEREO8_SOFT = &h1102
  143 const AL_STEREO16_SOFT = &h1103
  144 const AL_STEREO32F_SOFT = &h10011
  145 const AL_QUAD8_SOFT = &h1204
  146 const AL_QUAD16_SOFT = &h1205
  147 const AL_QUAD32F_SOFT = &h1206
  148 const AL_REAR8_SOFT = &h1207
  149 const AL_REAR16_SOFT = &h1208
  150 const AL_REAR32F_SOFT = &h1209
  151 const AL_5POINT1_8_SOFT = &h120A
  152 const AL_5POINT1_16_SOFT = &h120B
  153 const AL_5POINT1_32F_SOFT = &h120C
  154 const AL_6POINT1_8_SOFT = &h120D
  155 const AL_6POINT1_16_SOFT = &h120E
  156 const AL_6POINT1_32F_SOFT = &h120F
  157 const AL_7POINT1_8_SOFT = &h1210
  158 const AL_7POINT1_16_SOFT = &h1211
  159 const AL_7POINT1_32F_SOFT = &h1212
  160 const AL_INTERNAL_FORMAT_SOFT = &h2008
  161 const AL_BYTE_LENGTH_SOFT = &h2009
  162 const AL_SAMPLE_LENGTH_SOFT = &h200A
  163 const AL_SEC_LENGTH_SOFT = &h200B
  164 
  165 type LPALBUFFERSAMPLESSOFT as sub(byval as ALuint, byval as ALuint, byval as ALenum, byval as ALsizei, byval as ALenum, byval as ALenum, byval as const any ptr)
  166 type LPALBUFFERSUBSAMPLESSOFT as sub(byval as ALuint, byval as ALsizei, byval as ALsizei, byval as ALenum, byval as ALenum, byval as const any ptr)
  167 type LPALGETBUFFERSAMPLESSOFT as sub(byval as ALuint, byval as ALsizei, byval as ALsizei, byval as ALenum, byval as ALenum, byval as any ptr)
  168 type LPALISBUFFERFORMATSUPPORTEDSOFT as function(byval as ALenum) as ALboolean
  169 
  170 const AL_SOFT_direct_channels = 1
  171 const AL_DIRECT_CHANNELS_SOFT = &h1033
  172 const ALC_SOFT_loopback = 1
  173 const ALC_FORMAT_CHANNELS_SOFT = &h1990
  174 const ALC_FORMAT_TYPE_SOFT = &h1991
  175 const ALC_BYTE_SOFT = &h1400
  176 const ALC_UNSIGNED_BYTE_SOFT = &h1401
  177 const ALC_SHORT_SOFT = &h1402
  178 const ALC_UNSIGNED_SHORT_SOFT = &h1403
  179 const ALC_INT_SOFT = &h1404
  180 const ALC_UNSIGNED_INT_SOFT = &h1405
  181 const ALC_FLOAT_SOFT = &h1406
  182 const ALC_MONO_SOFT = &h1500
  183 const ALC_STEREO_SOFT = &h1501
  184 const ALC_QUAD_SOFT = &h1503
  185 const ALC_5POINT1_SOFT = &h1504
  186 const ALC_6POINT1_SOFT = &h1505
  187 const ALC_7POINT1_SOFT = &h1506
  188 
  189 type LPALCLOOPBACKOPENDEVICESOFT as function(byval as const ALCchar ptr) as ALCdevice ptr
  190 type LPALCISRENDERFORMATSUPPORTEDSOFT as function(byval as ALCdevice ptr, byval as ALCsizei, byval as ALCenum, byval as ALCenum) as ALCboolean
  191 type LPALCRENDERSAMPLESSOFT as sub(byval as ALCdevice ptr, byval as ALCvoid ptr, byval as ALCsizei)
  192 
  193 const AL_EXT_STEREO_ANGLES = 1
  194 const AL_STEREO_ANGLES = &h1030
  195 const AL_EXT_SOURCE_RADIUS = 1
  196 const AL_SOURCE_RADIUS = &h1031
  197 const AL_SOFT_source_latency = 1
  198 const AL_SAMPLE_OFFSET_LATENCY_SOFT = &h1200
  199 const AL_SEC_OFFSET_LATENCY_SOFT = &h1201
  200 
  201 type ALint64SOFT as longint
  202 type ALuint64SOFT as ulongint
  203 type LPALSOURCEDSOFT as sub(byval as ALuint, byval as ALenum, byval as ALdouble)
  204 type LPALSOURCE3DSOFT as sub(byval as ALuint, byval as ALenum, byval as ALdouble, byval as ALdouble, byval as ALdouble)
  205 type LPALSOURCEDVSOFT as sub(byval as ALuint, byval as ALenum, byval as const ALdouble ptr)
  206 type LPALGETSOURCEDSOFT as sub(byval as ALuint, byval as ALenum, byval as ALdouble ptr)
  207 type LPALGETSOURCE3DSOFT as sub(byval as ALuint, byval as ALenum, byval as ALdouble ptr, byval as ALdouble ptr, byval as ALdouble ptr)
  208 type LPALGETSOURCEDVSOFT as sub(byval as ALuint, byval as ALenum, byval as ALdouble ptr)
  209 type LPALSOURCEI64SOFT as sub(byval as ALuint, byval as ALenum, byval as ALint64SOFT)
  210 type LPALSOURCE3I64SOFT as sub(byval as ALuint, byval as ALenum, byval as ALint64SOFT, byval as ALint64SOFT, byval as ALint64SOFT)
  211 type LPALSOURCEI64VSOFT as sub(byval as ALuint, byval as ALenum, byval as const ALint64SOFT ptr)
  212 type LPALGETSOURCEI64SOFT as sub(byval as ALuint, byval as ALenum, byval as ALint64SOFT ptr)
  213 type LPALGETSOURCE3I64SOFT as sub(byval as ALuint, byval as ALenum, byval as ALint64SOFT ptr, byval as ALint64SOFT ptr, byval as ALint64SOFT ptr)
  214 type LPALGETSOURCEI64VSOFT as sub(byval as ALuint, byval as ALenum, byval as ALint64SOFT ptr)
  215 
  216 const ALC_EXT_DEFAULT_FILTER_ORDER = 1
  217 const ALC_DEFAULT_FILTER_ORDER = &h1100
  218 const AL_SOFT_deferred_updates = 1
  219 const AL_DEFERRED_UPDATES_SOFT = &hC002
  220 type LPALDEFERUPDATESSOFT as sub()
  221 type LPALPROCESSUPDATESSOFT as sub()
  222 const AL_SOFT_block_alignment = 1
  223 const AL_UNPACK_BLOCK_ALIGNMENT_SOFT = &h200C
  224 const AL_PACK_BLOCK_ALIGNMENT_SOFT = &h200D
  225 const AL_SOFT_MSADPCM = 1
  226 const AL_FORMAT_MONO_MSADPCM_SOFT = &h1302
  227 const AL_FORMAT_STEREO_MSADPCM_SOFT = &h1303
  228 const AL_SOFT_source_length = 1
  229 const ALC_SOFT_pause_device = 1
  230 type LPALCDEVICEPAUSESOFT as sub(byval device as ALCdevice ptr)
  231 type LPALCDEVICERESUMESOFT as sub(byval device as ALCdevice ptr)
  232 
  233 end extern