"Fossies" - the Fresh Open Source Software Archive 
Member "FreeBASIC-1.09.0-win64/inc/AL/alc.bi" (1 Jan 2022, 6197 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 extern "C"
29
30 #define AL_ALC_H
31 const ALC_INVALID = 0
32 const ALC_VERSION_0_1 = 1
33
34 type ALCdevice as ALCdevice_struct
35 type ALCcontext as ALCcontext_struct
36 type ALCboolean as byte
37 type ALCchar as zstring
38 type ALCbyte as byte
39 type ALCubyte as ubyte
40 type ALCshort as short
41 type ALCushort as ushort
42 type ALCint as long
43 type ALCuint as ulong
44 type ALCsizei as long
45 type ALCenum as long
46 type ALCfloat as single
47 type ALCdouble as double
48 type ALCvoid as any
49
50 const ALC_FALSE = 0
51 const ALC_TRUE = 1
52 const ALC_FREQUENCY = &h1007
53 const ALC_REFRESH = &h1008
54 const ALC_SYNC = &h1009
55 const ALC_MONO_SOURCES = &h1010
56 const ALC_STEREO_SOURCES = &h1011
57 const ALC_NO_ERROR = 0
58 const ALC_INVALID_DEVICE = &hA001
59 const ALC_INVALID_CONTEXT = &hA002
60 const ALC_INVALID_ENUM = &hA003
61 const ALC_INVALID_VALUE = &hA004
62 const ALC_OUT_OF_MEMORY = &hA005
63 const ALC_MAJOR_VERSION = &h1000
64 const ALC_MINOR_VERSION = &h1001
65 const ALC_ATTRIBUTES_SIZE = &h1002
66 const ALC_ALL_ATTRIBUTES = &h1003
67 const ALC_DEFAULT_DEVICE_SPECIFIER = &h1004
68 const ALC_DEVICE_SPECIFIER = &h1005
69 const ALC_EXTENSIONS = &h1006
70 const ALC_EXT_CAPTURE = 1
71 const ALC_CAPTURE_DEVICE_SPECIFIER = &h310
72 const ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER = &h311
73 const ALC_CAPTURE_SAMPLES = &h312
74 const ALC_ENUMERATE_ALL_EXT = 1
75 const ALC_DEFAULT_ALL_DEVICES_SPECIFIER = &h1012
76 const ALC_ALL_DEVICES_SPECIFIER = &h1013
77
78 declare function alcCreateContext(byval device as ALCdevice ptr, byval attrlist as const ALCint ptr) as ALCcontext ptr
79 declare function alcMakeContextCurrent(byval context as ALCcontext ptr) as ALCboolean
80 declare sub alcProcessContext(byval context as ALCcontext ptr)
81 declare sub alcSuspendContext(byval context as ALCcontext ptr)
82 declare sub alcDestroyContext(byval context as ALCcontext ptr)
83 declare function alcGetCurrentContext() as ALCcontext ptr
84 declare function alcGetContextsDevice(byval context as ALCcontext ptr) as ALCdevice ptr
85 declare function alcOpenDevice(byval devicename as const ALCchar ptr) as ALCdevice ptr
86 declare function alcCloseDevice(byval device as ALCdevice ptr) as ALCboolean
87 declare function alcGetError(byval device as ALCdevice ptr) as ALCenum
88 declare function alcIsExtensionPresent(byval device as ALCdevice ptr, byval extname as const ALCchar ptr) as ALCboolean
89 declare function alcGetProcAddress(byval device as ALCdevice ptr, byval funcname as const ALCchar ptr) as any ptr
90 declare function alcGetEnumValue(byval device as ALCdevice ptr, byval enumname as const ALCchar ptr) as ALCenum
91 declare function alcGetString(byval device as ALCdevice ptr, byval param as ALCenum) as const ALCchar ptr
92 declare sub alcGetIntegerv(byval device as ALCdevice ptr, byval param as ALCenum, byval size as ALCsizei, byval values as ALCint ptr)
93 declare function alcCaptureOpenDevice(byval devicename as const ALCchar ptr, byval frequency as ALCuint, byval format as ALCenum, byval buffersize as ALCsizei) as ALCdevice ptr
94 declare function alcCaptureCloseDevice(byval device as ALCdevice ptr) as ALCboolean
95 declare sub alcCaptureStart(byval device as ALCdevice ptr)
96 declare sub alcCaptureStop(byval device as ALCdevice ptr)
97 declare sub alcCaptureSamples(byval device as ALCdevice ptr, byval buffer as ALCvoid ptr, byval samples as ALCsizei)
98
99 type LPALCCREATECONTEXT as function(byval device as ALCdevice ptr, byval attrlist as const ALCint ptr) as ALCcontext ptr
100 type LPALCMAKECONTEXTCURRENT as function(byval context as ALCcontext ptr) as ALCboolean
101 type LPALCPROCESSCONTEXT as sub(byval context as ALCcontext ptr)
102 type LPALCSUSPENDCONTEXT as sub(byval context as ALCcontext ptr)
103 type LPALCDESTROYCONTEXT as sub(byval context as ALCcontext ptr)
104 type LPALCGETCURRENTCONTEXT as function() as ALCcontext ptr
105 type LPALCGETCONTEXTSDEVICE as function(byval context as ALCcontext ptr) as ALCdevice ptr
106 type LPALCOPENDEVICE as function(byval devicename as const ALCchar ptr) as ALCdevice ptr
107 type LPALCCLOSEDEVICE as function(byval device as ALCdevice ptr) as ALCboolean
108 type LPALCGETERROR as function(byval device as ALCdevice ptr) as ALCenum
109 type LPALCISEXTENSIONPRESENT as function(byval device as ALCdevice ptr, byval extname as const ALCchar ptr) as ALCboolean
110 type LPALCGETPROCADDRESS as function(byval device as ALCdevice ptr, byval funcname as const ALCchar ptr) as any ptr
111 type LPALCGETENUMVALUE as function(byval device as ALCdevice ptr, byval enumname as const ALCchar ptr) as ALCenum
112 type LPALCGETSTRING as function(byval device as ALCdevice ptr, byval param as ALCenum) as const ALCchar ptr
113 type LPALCGETINTEGERV as sub(byval device as ALCdevice ptr, byval param as ALCenum, byval size as ALCsizei, byval values as ALCint ptr)
114 type LPALCCAPTUREOPENDEVICE as function(byval devicename as const ALCchar ptr, byval frequency as ALCuint, byval format as ALCenum, byval buffersize as ALCsizei) as ALCdevice ptr
115 type LPALCCAPTURECLOSEDEVICE as function(byval device as ALCdevice ptr) as ALCboolean
116 type LPALCCAPTURESTART as sub(byval device as ALCdevice ptr)
117 type LPALCCAPTURESTOP as sub(byval device as ALCdevice ptr)
118 type LPALCCAPTURESAMPLES as sub(byval device as ALCdevice ptr, byval buffer as ALCvoid ptr, byval samples as ALCsizei)
119
120 end extern