alGetErrorString(3dm)

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

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

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.

     alGetErrorString(3dm) returns a character string indicating the meaning
     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)