Defines | Functions

src/audio/src/util/alut.h File Reference

#include <AL/al.h>
#include <AL/alc.h>

Go to the source code of this file.

Defines

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

Functions

ALboolean alutInit (ALCdevice *device, ALCcontext *context)
ALboolean alutInitWithoutContext (int *argcp, char **argv)
ALboolean alutExit (void)
ALenum alutGetError (void)
const char * alutGetErrorString (ALenum error)
ALuint alutCreateBufferFromFile (const rchar *fileName)
ALuint alutCreateBufferFromFileImage (const ALvoid *data, ALsizei length)
ALuint alutCreateBufferHelloWorld (void)
ALuint alutCreateBufferWaveform (ALenum waveshape, ALfloat frequency, ALfloat phase, ALfloat duration)
ALvoid * alutLoadMemoryFromFile (const rchar *fileName, ALenum *format, ALsizei *size, ALfloat *frequency)
ALvoid * alutLoadMemoryFromFileImage (const ALvoid *data, ALsizei length, ALenum *format, ALsizei *size, ALfloat *frequency)
ALvoid * alutLoadMemoryHelloWorld (ALenum *format, ALsizei *size, ALfloat *frequency)
ALvoid * alutLoadMemoryWaveform (ALenum waveshape, ALfloat frequency, ALfloat phase, ALfloat duration, ALenum *format, ALsizei *size, ALfloat *freq)
const char * alutGetMIMETypes (ALenum loader)
ALint alutGetMajorVersion (void)
ALint alutGetMinorVersion (void)
ALboolean alutSleep (ALfloat duration)

Define Documentation

#define ALUT_API_MAJOR_VERSION   1

Definition at line 15 of file alut.h.

#define ALUT_API_MINOR_VERSION   1

Definition at line 16 of file alut.h.

#define ALUT_ERROR_AL_ERROR_ON_ENTRY   0x205

Definition at line 24 of file alut.h.

#define ALUT_ERROR_ALC_ERROR_ON_ENTRY   0x206

Definition at line 25 of file alut.h.

#define ALUT_ERROR_BUFFER_DATA   0x20D

Definition at line 32 of file alut.h.

#define ALUT_ERROR_CLOSE_DEVICE   0x208

Definition at line 27 of file alut.h.

#define ALUT_ERROR_CORRUPT_OR_TRUNCATED_DATA   0x211

Definition at line 36 of file alut.h.

#define ALUT_ERROR_CREATE_CONTEXT   0x209

Definition at line 28 of file alut.h.

#define ALUT_ERROR_DESTROY_CONTEXT   0x20B

Definition at line 30 of file alut.h.

#define ALUT_ERROR_GEN_BUFFERS   0x20C

Definition at line 31 of file alut.h.

#define ALUT_ERROR_INVALID_ENUM   0x201

Definition at line 20 of file alut.h.

#define ALUT_ERROR_INVALID_OPERATION   0x203

Definition at line 22 of file alut.h.

#define ALUT_ERROR_INVALID_VALUE   0x202

Definition at line 21 of file alut.h.

#define ALUT_ERROR_IO_ERROR   0x20E

Definition at line 33 of file alut.h.

#define ALUT_ERROR_MAKE_CONTEXT_CURRENT   0x20A

Definition at line 29 of file alut.h.

#define ALUT_ERROR_NO_CURRENT_CONTEXT   0x204

Definition at line 23 of file alut.h.

#define ALUT_ERROR_NO_ERROR   0

Definition at line 18 of file alut.h.

#define ALUT_ERROR_OPEN_DEVICE   0x207

Definition at line 26 of file alut.h.

#define ALUT_ERROR_OUT_OF_MEMORY   0x200

Definition at line 19 of file alut.h.

#define ALUT_ERROR_UNSUPPORTED_FILE_SUBTYPE   0x210

Definition at line 35 of file alut.h.

#define ALUT_ERROR_UNSUPPORTED_FILE_TYPE   0x20F

Definition at line 34 of file alut.h.

#define ALUT_LOADER_BUFFER   0x300

Definition at line 44 of file alut.h.

#define ALUT_LOADER_MEMORY   0x301

Definition at line 45 of file alut.h.

#define ALUT_WAVEFORM_IMPULSE   0x104

Definition at line 42 of file alut.h.

#define ALUT_WAVEFORM_SAWTOOTH   0x102

Definition at line 40 of file alut.h.

#define ALUT_WAVEFORM_SINE   0x100

Definition at line 38 of file alut.h.

#define ALUT_WAVEFORM_SQUARE   0x101

Definition at line 39 of file alut.h.

#define ALUT_WAVEFORM_WHITENOISE   0x103

Definition at line 41 of file alut.h.


Function Documentation

ALuint alutCreateBufferFromFile ( const rchar *  fileName  ) 

Definition at line 327 of file alutLoader.cpp.

ALuint alutCreateBufferFromFileImage ( const ALvoid *  data,
ALsizei  length 
)

Definition at line 339 of file alutLoader.cpp.

ALuint alutCreateBufferHelloWorld ( void   ) 

Definition at line 931 of file alutWaveform.cpp.

ALuint alutCreateBufferWaveform ( ALenum  waveshape,
ALfloat  frequency,
ALfloat  phase,
ALfloat  duration 
)

Definition at line 183 of file alutWaveform.cpp.

ALboolean alutExit ( void   ) 

Definition at line 95 of file alutInit.cpp.

ALenum alutGetError ( void   ) 

Definition at line 22 of file alutError.cpp.

const char* alutGetErrorString ( ALenum  error  ) 

Definition at line 30 of file alutError.cpp.

ALint alutGetMajorVersion ( void   ) 

Definition at line 4 of file alutVersion.cpp.

const char* alutGetMIMETypes ( ALenum  loader  ) 

Definition at line 506 of file alutLoader.cpp.

ALint alutGetMinorVersion ( void   ) 

Definition at line 10 of file alutVersion.cpp.

ALboolean alutInit ( ALCdevice *  device,
ALCcontext *  context 
)

Definition at line 50 of file alutInit.cpp.

ALboolean alutInitWithoutContext ( int *  argcp,
char **  argv 
)

Definition at line 76 of file alutInit.cpp.

ALvoid* alutLoadMemoryFromFile ( const rchar *  fileName,
ALenum *  format,
ALsizei *  size,
ALfloat *  frequency 
)

Definition at line 399 of file alutLoader.cpp.

ALvoid* alutLoadMemoryFromFileImage ( const ALvoid *  data,
ALsizei  length,
ALenum *  format,
ALsizei *  size,
ALfloat *  frequency 
)

Definition at line 412 of file alutLoader.cpp.

ALvoid* alutLoadMemoryHelloWorld ( ALenum *  format,
ALsizei *  size,
ALfloat *  frequency 
)

Definition at line 920 of file alutWaveform.cpp.

ALvoid* alutLoadMemoryWaveform ( ALenum  waveshape,
ALfloat  frequency,
ALfloat  phase,
ALfloat  duration,
ALenum *  format,
ALsizei *  size,
ALfloat *  freq 
)

Definition at line 145 of file alutWaveform.cpp.

ALboolean alutSleep ( ALfloat  duration  ) 

Definition at line 15 of file alutUtil.cpp.