alGetErrorString(3dm)					 alGetErrorString(3dm)
      alGetErrorString -	get a string corresponding to an Audio Library error
     code
     #include <dmedia/audio.h>
     char *alGetErrorString(int	error)
     error	 expects an error code as set by any Audio Library function.
      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.
	  #include <dmedia/audio.h>
	  ALport p;
	  p = alOpenPort("exampleOutput", "w", 0);
	  if (!p) {
	       printf("openport	failed:	%s\n",	alGetErrorString(oserror()));
	       exit(-1);
	  }
     oserror(3C), alIntro(3dm)
									PPPPaaaaggggeeee 1111 [ Back ]
 |