-
-
Notifications
You must be signed in to change notification settings - Fork 9
openal
IsaacShelton edited this page Nov 13, 2022
·
5 revisions
openal/openal.adept
contains a wrapper for OpenAL for Windows and MacOS.
Windows executables that use OpenAL will need OpenAL32.dll
.
Some windows executables will also require libgcc_s_seh-1.dll, libstdc++-6.dll, and/or libwinpthread-1.dll. Copies of these can be found in the folder above the import folder on windows. You can see where your import folder is by doing adept --version.
define AL_NO_ERROR = 0ui
define AL_POSITION = 0x1004ui
define AL_VELOCITY = 0x1006ui
define AL_PITCH = 0x1003ui
define AL_LOOPING = 0x1007ui
define AL_ORIENTATION = 0x100Fui
define AL_BUFFER = 0x1009ui
define AL_GAIN = 0x100Aui
define AL_SOURCE_STATE = 0x1010
define AL_INITIAL = 0x1011
define AL_PLAYING = 0x1012
define AL_PAUSED = 0x1013
define AL_STOPPED = 0x1014
define AL_NONE = 0ui
define AL_FORMAT_MONO8 = 0x1100
define AL_FORMAT_MONO16 = 0x1101
define AL_FORMAT_STEREO8 = 0x1102
define AL_FORMAT_STEREO16 = 0x1103
alias ALenum = int
foreign alGetError() uint
foreign alListenerfv(uint, ptr) void
foreign alSourcePlay(uint) void
foreign alSourceStop(uint) void
foreign alSourcePause(uint) void
foreign alDeleteBuffers(int, *uint) void
foreign alDeleteSources(int, *uint) void
foreign alGenBuffers(int, *uint) void
foreign alGenSources(int, *uint) void
foreign alBufferData(uint, uint, ptr, usize, usize) void
foreign alSourcei(uint, uint, uint) void
foreign alSourcef(uint, uint, float) void
foreign alSourcefv(uint, uint, *float) void
foreign alGetSourcef(uint, ALenum, *float) void
foreign alGetSource3f(uint, ALenum, *float, *float, *float) void
foreign alGetSourcefv(uint, ALenum, *float) void
foreign alGetSourcei(uint, ALenum, *int) void
foreign alGetSource3i(uint, ALenum, *int, *int, *int) void
foreign alGetSourceiv(uint, ALenum, *int) void