zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
openal-info.c File Reference
#include <stdio.h>
#include <string.h>
#include "AL/alc.h"
#include "AL/al.h"
#include "AL/alext.h"

Go to the source code of this file.

Macros

#define ALC_ALL_DEVICES_SPECIFIER   0x1013
 
#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER   0x1012
 
#define ALC_EFX_MAJOR_VERSION   0x20001
 
#define ALC_EFX_MINOR_VERSION   0x20002
 
#define ALC_MAX_AUXILIARY_SENDS   0x20003
 
#define checkALCErrors(x)   checkALCErrors((x),__LINE__)
 
#define checkALErrors()   checkALErrors(__LINE__)
 
#define MAX_WIDTH   80
 

Functions

static ALCenum checkALCErrors (ALCdevice *device, int linenum)
 
static ALenum checkALErrors (int linenum)
 
int main (int argc, char *argv[])
 
static void printALCInfo (ALCdevice *device)
 
static void printALInfo (void)
 
static void printDeviceList (const char *list)
 
static void printEFXInfo (ALCdevice *device)
 
static void printList (const char *list, char separator)
 

Macro Definition Documentation

#define ALC_ALL_DEVICES_SPECIFIER   0x1013

Definition at line 34 of file openal-info.c.

Referenced by main(), and printALCInfo().

#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER   0x1012

Definition at line 33 of file openal-info.c.

Referenced by main().

#define ALC_EFX_MAJOR_VERSION   0x20001

Definition at line 38 of file openal-info.c.

Referenced by printEFXInfo().

#define ALC_EFX_MINOR_VERSION   0x20002

Definition at line 39 of file openal-info.c.

Referenced by printEFXInfo().

#define ALC_MAX_AUXILIARY_SENDS   0x20003

Definition at line 40 of file openal-info.c.

Referenced by printEFXInfo().

#define checkALCErrors (   x)    checkALCErrors((x),__LINE__)

Definition at line 121 of file openal-info.c.

Referenced by printALCInfo(), and printEFXInfo().

#define checkALErrors ( )    checkALErrors(__LINE__)

Definition at line 112 of file openal-info.c.

Referenced by printALInfo().

#define MAX_WIDTH   80

Definition at line 44 of file openal-info.c.

Referenced by printList().

Function Documentation

static ALCenum checkALCErrors ( ALCdevice device,
int  linenum 
)
static

Definition at line 114 of file openal-info.c.

References ALC_NO_ERROR, alcGetError(), and alcGetString().

static ALenum checkALErrors ( int  linenum)
static

Definition at line 105 of file openal-info.c.

References AL_NO_ERROR, alGetError(), and alGetString().

static void printALInfo ( void  )
static

Definition at line 150 of file openal-info.c.

References AL_EXTENSIONS, AL_RENDERER, AL_VENDOR, AL_VERSION, alGetString(), checkALErrors, and printList().

Referenced by main().

static void printDeviceList ( const char *  list)
static

Definition at line 94 of file openal-info.c.

Referenced by main().

static void printList ( const char *  list,
char  separator 
)
static

Definition at line 46 of file openal-info.c.

References MAX_WIDTH.

Referenced by printALCInfo(), printALInfo(), and printEFXInfo().