alGetErrorString(3dm)                                    alGetErrorString(3dm)


NAME
     alGetErrorString - get a string corresponding to an Audio Library error
     code

SYNOPSIS
     #include <dmedia/audio.h>

     char *alGetErrorString(int error)

PARAMETER
     error       expects an error code as set by any Audio Library function.


DESCRIPTION
     The Audio Library defines a set of error codes whose numeric tokens begin
     with the prefix "AL_BAD_".  Typically these are retrieved by calling
     oserror() after an AL function returns a failure code; see the manual
     page for each individual function to see what its error behavior is.

     of the given error value, error.


EXAMPLE
          #include <dmedia/audio.h>
          ALport p;

          p = alOpenPort("exampleOutput", "w", 0);
          if (!p) {
               printf("openport failed: %s\n",  alGetErrorString(oserror()));
               exit(-1);
          }


SEE ALSO
     oserror(3C), alIntro(3dm)


                                                                        Page 1