Skip to content
IsaacShelton edited this page Nov 13, 2022 · 6 revisions

alut

alut/alut.adept is a wrapper for the OpenAL Utility Toolkit for Windows & MacOS.

Windows executables that use ALUT will need libalut.dll and 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.

Constants

define ALUT_API_MINOR_VERSION               = 1
define ALUT_API_MAJOR_VERSION               = 1
define ALUT_ERROR_OUT_OF_MEMORY             = 0x200
define ALUT_ERROR_NO_ERROR                  = 0
define ALUT_ERROR_INVALID_VALUE             = 0x202
define ALUT_ERROR_INVALID_ENUM              = 0x201
define ALUT_ERROR_NO_CURRENT_CONTEXT        = 0x204
define ALUT_ERROR_INVALID_OPERATION         = 0x203
define ALUT_ERROR_ALC_ERROR_ON_ENTRY        = 0x206
define ALUT_ERROR_AL_ERROR_ON_ENTRY         = 0x205
define ALUT_ERROR_CLOSE_DEVICE              = 0x208
define ALUT_ERROR_OPEN_DEVICE               = 0x207
define ALUT_ERROR_MAKE_CONTEXT_CURRENT      = 0x20A
define ALUT_ERROR_CREATE_CONTEXT            = 0x209
define ALUT_ERROR_GEN_BUFFERS               = 0x20C
define ALUT_ERROR_DESTROY_CONTEXT           = 0x20B
define ALUT_ERROR_IO_ERROR                  = 0x20E
define ALUT_ERROR_BUFFER_DATA               = 0x20D
define ALUT_ERROR_UNSUPPORTED_FILE_SUBTYPE  = 0x210
define ALUT_ERROR_UNSUPPORTED_FILE_TYPE     = 0x20F
define ALUT_WAVEFORM_SINE                   = 0x100
define ALUT_ERROR_CORRUPT_OR_TRUNCATED_DATA = 0x211
define ALUT_WAVEFORM_SAWTOOTH               = 0x102
define ALUT_WAVEFORM_SQUARE                 = 0x101
define ALUT_WAVEFORM_IMPULSE                = 0x104
define ALUT_WAVEFORM_WHITENOISE             = 0x103
define ALUT_LOADER_MEMORY                   = 0x301
define ALUT_LOADER_BUFFER                   = 0x300

Functions

  • foreign alutInit(*int, **ubyte) bool
  • foreign alutInitWithoutContext(*int, **ubyte) bool
  • foreign alutExit() bool
  • foreign alutGetError() ALenum
  • foreign alutGetErrorString(ALenum) *ubyte
  • foreign alutCreateBufferFromFile(*ubyte) uint
  • foreign alutCreateBufferFromFileImage(ptr, usize) uint
  • foreign alutCreateBufferHelloWorld() uint
  • foreign alutCreateBufferWaveform(ALenum, float, float, float) uint
  • foreign alutLoadMemoryFromFile(*ubyte, *ALenum, *usize, *float) ptr
  • foreign alutLoadMemoryFromFileImage(ptr, usize, *ALenum, *usize, *float) ptr
  • foreign alutLoadMemoryHelloWorld(*ALenum, *usize, *float) ptr
  • foreign alutLoadMemoryWaveform(ALenum, float, float, float, *ALenum, *usize, *float) ptr
  • foreign alutGetMIMETypes(ALenum) *ubyte
  • foreign alutGetMajorVersion() int
  • foreign alutGetMinorVersion() int
  • foreign alutSleep(float) bool
  • foreign alutUnloadWAV(uint, ptr, usize, usize) void
  • foreign /*or func impl*/ alutLoadWAVFile(*ubyte, *uint, *ptr, *usize, *usize) ptr
  • foreign /*or func impl*/ alutLoadWAVMemory(*ubyte, *uint, *ptr, *usize, *usize) ptr
  • foreign /*or func impl*/ alutLoadWAVFile(*ubyte, *uint, *ptr, *usize, *usize, *bool) ptr
  • foreign /*or func impl*/ alutLoadWAVMemory(*ubyte, *uint, *ptr, *usize, *usize, *bool) ptr
Clone this wiki locally