Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 alureBufferDataFromFile
 alureBufferDataFromMemory
 alureBufferDataFromStream
 alureCreateBufferFromFile
 alureCreateBufferFromMemory
 alureCreateStreamFromCallback
 alureCreateStreamFromFile
 alureCreateStreamFromMemory
 alureCreateStreamFromStaticMemory
 alureDestroyStream
 alureFreeDeviceNames
 alureGetDeviceNames
 alureGetErrorString
 alureGetSampleFormat
 alureGetVersion
 alureInitDevice
 alureInstallDecodeCallbacks
 alureRewindStream
 alureShutdownDevice
 alureSleep
ALURE_API ALboolean ALURE_APIENTRY alureBufferDataFromFile(
   const ALchar *fname,
   ALuint buffer
)
Loads the given file into an existing OpenAL buffer object.
ALURE_API ALboolean ALURE_APIENTRY alureBufferDataFromMemory(
   const ALubyte *fdata,
   ALsizei length,
   ALuint buffer
)
Loads a file image from memory into an existing OpenAL buffer object, similar to alureBufferDataFromFile.
ALURE_API ALsizei ALURE_APIENTRY alureBufferDataFromStream(alureStream *stream,
ALsizei numBufs,
ALuint *bufs)
Buffers the given buffer objects with the next chunks of data from the stream.
ALURE_API ALuint ALURE_APIENTRY alureCreateBufferFromFile(const ALchar *fname)
Loads the given file into a new OpenAL buffer object.
ALURE_API ALuint ALURE_APIENTRY alureCreateBufferFromMemory(
   const ALubyte *fdata,
   ALsizei length
)
Loads a file image from memory into a new OpenAL buffer object, similar to alureCreateBufferFromFile.
ALURE_API alureStream* ALURE_APIENTRY alureCreateStreamFromCallback(
   ALuint (*callback)(void *userdata, ALubyte *data, ALuint bytes),
   void *userdata,
   ALenum format,
   ALuint samplerate,
   ALsizei chunkLength,
   ALsizei numBufs,
   ALuint *bufs
)
Creates a stream using the specified callback to retrieve data.
ALURE_API alureStream* ALURE_APIENTRY alureCreateStreamFromFile(
   const ALchar *fname,
   ALsizei chunkLength,
   ALsizei numBufs,
   ALuint *bufs
)
Opens a file and sets it up for streaming.
ALURE_API alureStream* ALURE_APIENTRY alureCreateStreamFromMemory(
   const ALubyte *fdata,
   ALuint length,
   ALsizei chunkLength,
   ALsizei numBufs,
   ALuint *bufs
)
Opens a file image from memory and sets it up for streaming, similar to alureCreateStreamFromFile.
ALURE_API alureStream* ALURE_APIENTRY alureCreateStreamFromStaticMemory(
   const ALubyte *fdata,
   ALuint length,
   ALsizei chunkLength,
   ALsizei numBufs,
   ALuint *bufs
)
Identical to alureCreateStreamFromMemory, except the given memory is used directly and not duplicated.
ALURE_API ALboolean ALURE_APIENTRY alureDestroyStream(alureStream *stream,
ALsizei numBufs,
ALuint *bufs)
Closes an opened stream.
ALURE_API ALvoid ALURE_APIENTRY alureFreeDeviceNames(const ALCchar **names)
Frees the device name array returned from alureGetDeviceNames.
ALURE_API const ALCchar** ALURE_APIENTRY alureGetDeviceNames(ALCboolean all,
ALCsizei *count)
Gets an array of device name strings from OpenAL.
ALURE_API const ALchar* ALURE_APIENTRY alureGetErrorString(void)
Returns a string describing the last error encountered.
ALURE_API ALenum ALURE_APIENTRY alureGetSampleFormat(ALuint channels,
ALuint bits,
ALuint floatbits)
Retrieves an OpenAL format for the given sample format.
ALURE_API void ALURE_APIENTRY alureGetVersion(ALuint *major,
ALuint *minor)
Stores the major and minor version of the library.
ALURE_API ALboolean ALURE_APIENTRY alureInitDevice(const ALCchar *name,
const ALCint *attribs)
Opens the named device, creates a context with the given attributes, and sets that context as current.
ALURE_API ALboolean ALURE_APIENTRY alureInstallDecodeCallbacks(
   ALint index,
   void *(*open_file)(const ALchar *filename),
   void *(*open_memory)(const ALubyte *data, ALuint length),
   ALboolean (*get_format)(void *instance, ALenum *format, ALuint *samplerate, ALuint *blocksize),
   ALuint (*decode)(void *instance, ALubyte *data, ALuint bytes),
   ALboolean (*rewind)(void *instance),
   void (*close)(void *instance)
)
Installs callbacks to enable ALURE to handle more file types.
ALURE_API ALboolean ALURE_APIENTRY alureRewindStream(alureStream *stream)
Rewinds the stream so that the next alureBufferDataFromStream call will restart from the beginning of the audio file.
ALURE_API ALboolean ALURE_APIENTRY alureShutdownDevice(void)
Destroys the current context and closes its associated device.
ALURE_API ALboolean ALURE_APIENTRY alureSleep(ALfloat duration)
Rests the calling thread for the given number of seconds.