MusicKit  0.0.0
dsp_errno.h
00001 #ifndef __MK_dsp_errno_H___
00002 #define __MK_dsp_errno_H___
00003 /*
00004         $Id$
00005         Copyright 1988-1992, NeXT Inc.  All rights reserved.
00006   
00007         This file contains globally unique error codes for the DSP C library.
00008 
00009 */
00010 
00011 // locations are different between Win and Unix
00012 #ifdef WIN32
00013 #import <errno.h>
00014 #else
00015 #import <sys/errno.h>
00016 #endif
00017 
00018 extern int errno;
00019 
00020 #define DSP_EWARNING 0          /* used to print warning and continue */
00021 
00022 #define DSP_ERRORBASE    7000   /* global error codes for DSP C library*/
00023 
00024 #define DSP_EBADLA         (DSP_ERRORBASE+1) /* bad load address */
00025 #define DSP_EBADDR         (DSP_ERRORBASE+2) /* bad data record */
00026 #define DSP_EBADFILETYPE   (DSP_ERRORBASE+3) /* bad file type */
00027 #define DSP_EBADSECTION    (DSP_ERRORBASE+4) /* bad section */
00028 #define DSP_EBADLNKFILE    (DSP_ERRORBASE+5) /* bad link file */
00029 #define DSP_EBADLODFILE    (DSP_ERRORBASE+6) /* bad link file */
00030 #define DSP_ETIMEOUT       (DSP_ERRORBASE+7) /* time out */
00031 #define DSP_EBADSYMBOL     (DSP_ERRORBASE+8) /* bad symbol */
00032 #define DSP_EBADFILEFORMAT (DSP_ERRORBASE+9) /* bad file format */
00033 #define DSP_EBADMEMMAP     (DSP_ERRORBASE+10) /* invalid DSP memory map */
00034 
00035 
00036 #define DSP_EMISC          (DSP_ERRORBASE+11) /* miscellaneous error */
00037 #define DSP_EPEOF          (DSP_ERRORBASE+12) /* premature end of file */
00038 #define DSP_EPROTOCOL      (DSP_ERRORBASE+13) /* DSP communication trouble */
00039 #define DSP_EBADRAM        (DSP_ERRORBASE+14) /* DSP private RAM broken */
00040 #define DSP_ESYSHUNG       (DSP_ERRORBASE+15) /* DSP system not responding */
00041 #define DSP_EBADDSPFILE    (DSP_ERRORBASE+16) /* bad .dsp file */
00042 #define DSP_EILLDMA        (DSP_ERRORBASE+17) /* attempt to write p:$20#2 */
00043 #define DSP_ENOMSG         (DSP_ERRORBASE+18) /* no DSP messages to read */
00044 #define DSP_EBADMKLC       (DSP_ERRORBASE+19) /* lc not used by musickit */
00045 #define DSP_EBADVERSION    (DSP_ERRORBASE+20) /* DSP sys version mismatch */
00046 #define DSP_EDSP           (DSP_ERRORBASE+21) /* DSP error code */
00047 #define DSP_EILLADDR       (DSP_ERRORBASE+22) /* Attempt to overwrite sys */
00048 #define DSP_EHWERR         (DSP_ERRORBASE+23) /* Apparent hardware problem */
00049 #define DSP_EFPOVFL        (DSP_ERRORBASE+24) /* 24b Fixed-point Overflow */
00050 #define DSP_EHMSOVFL       (DSP_ERRORBASE+25) /* Host Message Stack Overf. */
00051 #define DSP_EMACH          (DSP_ERRORBASE+26) /* Error says Mach kernel */
00052 #define DSP_EUSER          (DSP_ERRORBASE+27) /* User error code */
00053 #define DSP_EABORT         (DSP_ERRORBASE+28) /* DSP aborted execution */
00054 #define DSP_ENOTOPEN       (DSP_ERRORBASE+29) /* can't do this when closed */
00055 #define DSP_EQUINT         (DSP_ERRORBASE+30) /* QuintProcessor error */
00056 
00057 #define DSP_EUNIX          (-1) /* Use errno to get error code */
00058 
00059 #endif