Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ alGetErrorString(3dm) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

oserror(3C)

alIntro(3dm)



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.

     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)

















                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026