home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / sound / sounderror.h < prev    next >
Text File  |  1991-08-09  |  1KB  |  54 lines

  1.  
  2. /*
  3.  *    sounderror.h
  4.  *    Copyright 1988-89 NeXT, Inc.
  5.  *
  6.  */
  7.  
  8. typedef enum {
  9.     SND_ERR_NONE        = 0,
  10.     SND_ERR_NOT_SOUND        = 1,
  11.     SND_ERR_BAD_FORMAT        = 2,
  12.     SND_ERR_BAD_RATE        = 3,
  13.     SND_ERR_BAD_CHANNEL        = 4,
  14.     SND_ERR_BAD_SIZE        = 5,
  15.     SND_ERR_BAD_FILENAME    = 6,
  16.     SND_ERR_CANNOT_OPEN        = 7,
  17.     SND_ERR_CANNOT_WRITE    = 8,
  18.     SND_ERR_CANNOT_READ        = 9,
  19.     SND_ERR_CANNOT_ALBSR= 10,
  20.     SND_ERR_CANNOT_FREE        = 11,
  21.     SND_ERR_CANNOT_COPY        = 12,
  22.     SND_ERR_CANNOT_RESERVE    = 13,
  23.     SND_ERR_NOT_RESERVED    = 14,
  24.     SND_ERR_CANNOT_RECORD    = 15,
  25.     SND_ERR_ALREADY_RECORDING    = 16,
  26.     SND_ERR_NOT_RECORDING    = 17,
  27.     SND_ERR_CANNOT_PLAY        = 18,
  28.     SND_ERR_ALREADY_PLAYING    = 19,
  29.     SND_ERR_NOT_PLAYING        = 20,
  30.     SND_ERR_NOT_IMPLEMENTED    = 21,
  31.     SND_ERR_CANNOT_FIND        = 22,
  32.     SND_ERR_CANNOT_EDIT        = 23,
  33.     SND_ERR_BAD_SPACE        = 24,
  34.     SND_ERR_KERNEL        = 25,
  35.     SND_ERR_BAD_CONFIGURATION    = 26,
  36.     SND_ERR_CANNOT_CONFIGURE    = 27,
  37.     SND_ERR_UNDERRUN        = 28,
  38.     SND_ERR_ABORTED        = 29,
  39.     SND_ERR_BAD_TAG        = 30,
  40.     SND_ERR_CANNOT_ACCESS    = 31,
  41.     SND_ERR_TIMEOUT        = 32,
  42.     SND_ERR_BUSY        = 33,
  43.     SND_ERR_CANNOT_ABORT    = 34,
  44.     SND_ERR_INFO_TOO_BIG    = 35,
  45.     SND_ERR_UNKNOWN=32767
  46. } SNDError;
  47.  
  48. char *SNDSoundError(int err);
  49. /*
  50.  * This routine returns a pointer to a string that describes the
  51.  * given error code. 
  52.  */
  53.  
  54.