+#define OGG_AFH_COMMON_ERRORS \
+ PARA_ERROR(STREAM_PACKETOUT, "ogg stream packet-out error (first packet)"), \
+ PARA_ERROR(SYNC_PAGEOUT, "ogg sync page-out error (no ogg file?)"), \
+ PARA_ERROR(STREAM_PAGEIN, "ogg stream page-in error (first page)"), \
+ PARA_ERROR(OGG_SYNC, "internal ogg storage overflow"), \
+ PARA_ERROR(OGG_EMPTY, "no ogg pages found"), \
+
+
+#define SPX_AFH_ERRORS \
+ PARA_ERROR(SPX_COMMENT, "invalid speex comment"), \
+
+
+#define SPX_COMMON_ERRORS \
+ PARA_ERROR(SPX_HEADER, "can not read speex header"), \
+ PARA_ERROR(SPX_HEADER_MODE, "invalid speex mode in header"), \
+ PARA_ERROR(SPX_VERSION, "incompatible speex bit stream version"), \
+ PARA_ERROR(SPX_DECODER_INIT, "speex decoder initialization failed"), \
+ PARA_ERROR(SPX_CTL_BAD_RQ, "speex_decoder_ctl: invalid request"), \
+ PARA_ERROR(SPX_CTL_INVAL, "speex_decoder_ctl: invalid argument"), \
+
+#define SPXDEC_FILTER_ERRORS \
+ PARA_ERROR(SPX_DECODE, "speex decoding error"), \
+ PARA_ERROR(SPX_DECODE_OVERFLOW, "speex decoding overflow"), \
+ PARA_ERROR(SPX_EOS, "speex: end of stream"), \
+
+#define BUFFER_TREE_ERRORS \
+ PARA_ERROR(BTR_EOF, "buffer tree: end of file"), \
+ PARA_ERROR(BTR_NO_CHILD, "btr node has no children"), \
+ PARA_ERROR(BTR_NAVAIL, "btr node: value currently unavailable"), \
+
+
+#define BITSTREAM_ERRORS \
+ PARA_ERROR(VLC, "invalid vlc code"), \
+
+
+#define WMA_AFH_ERRORS \
+ PARA_ERROR(NO_WMA, "asf/wma format not recognized"), \
+
+
+#define WMA_COMMON_ERRORS \
+ PARA_ERROR(WMA_NO_GUID, "audio stream guid not found"), \
+
+
+#define WMADEC_FILTER_ERRORS \
+ PARA_ERROR(WMA_BAD_PARAMS, "invalid WMA parameters"), \
+ PARA_ERROR(WMA_OUTPUT_SPACE, "insufficient output space"), \
+ PARA_ERROR(WMA_BAD_SUPERFRAME, "invalid superframe"), \
+ PARA_ERROR(WMA_BLOCK_SIZE, "invalid block size"), \
+ PARA_ERROR(INCOHERENT_BLOCK_LEN, "incoherent block length"), \
+ PARA_ERROR(WMADEC_EOF, "wmadec: end of file"), \
+
+
+#define IMDCT_ERRORS \
+ PARA_ERROR(FFT_BAD_PARAMS, "invalid params for fft"), \
+
+
+#define PREBUFFER_FILTER_ERRORS \
+ PARA_ERROR(PREBUFFER_SYNTAX, "syntax error in prebuffer filter config"), \
+ PARA_ERROR(PREBUFFER_SUCCESS, "prebuffering complete"), \
+
+
+#define OSS_WRITE_ERRORS \
+ PARA_ERROR(BAD_SAMPLE_FORMAT, "sample format not supported"), \
+ PARA_ERROR(BAD_CHANNEL_COUNT, "channel count not supported"), \
+ PARA_ERROR(BAD_SAMPLERATE, "sample rate not supported"), \
+
+
+#define COMPRESS_FILTER_ERRORS \
+ PARA_ERROR(COMPRESS_SYNTAX, "syntax error in compress filter config"), \
+ PARA_ERROR(COMPRESS_EOF, "compress: end of file"), \
+
+
+#define WAV_FILTER_ERRORS \
+ PARA_ERROR(WAV_BAD_FC, "invalid filter configuration"), \
+ PARA_ERROR(WAV_EOF, "wav filter: end of file"), \
+ PARA_ERROR(WAV_SUCCESS, "successfully wrote wav header"), \
+
+
+#define FEC_ERRORS \
+ PARA_ERROR(FEC_BAD_IDX, "invalid index vector"), \
+ PARA_ERROR(FEC_SINGULAR, "unexpected singular matrix"), \
+ PARA_ERROR(FEC_PIVOT, "pivot column not found"), \
+ PARA_ERROR(FEC_PARMS, "invalid fec parameters"), \
+
+
+#define FECDEC_FILTER_ERRORS \
+ PARA_ERROR(BAD_FEC_HEADER, "invalid fec header"), \
+ PARA_ERROR(BAD_SLICE_SIZE, "slice size zero or too large"), \
+ PARA_ERROR(BAD_SLICE_NUM, "invalid slice number"), \
+ PARA_ERROR(FECDEC_OVERRUN, "fecdec output buffer overrun"), \
+ PARA_ERROR(FECDEC_EOF, "received eof packet"), \
+
+
+#define AMP_FILTER_ERRORS \
+ PARA_ERROR(AMP_SYNTAX, "syntax error in amp filter config"), \
+ PARA_ERROR(AMP_ZERO_AMP, "no amplification necessary"), \
+ PARA_ERROR(AMP_EOF, "amp: end of file"), \
+
+
+#define SEND_COMMON_ERRORS \
+ PARA_ERROR(MAX_CLIENTS, "maximal number of clients exceeded"), \
+
+
+#define CLIENT_ERRORS \
+ PARA_ERROR(TASK_STARTED, "task started"), \
+
+
+#define AFH_ERRORS \
+ PARA_ERROR(AFH_SYNTAX, "afh syntax error"), \
+ PARA_ERROR(AFH_SHORT_WRITE, "afh short write"), \
+
+
+#define AFH_COMMON_ERRORS \
+ PARA_ERROR(AUDIO_FORMAT, "audio format not recognized"), \
+
+
+#define ACL_ERRORS \
+ PARA_ERROR(ACL_PERM, "access denied by acl"), \
+
+
+#define AFS_ERRORS \
+ PARA_ERROR(BAD_TABLE_NAME, "invalid table"), \
+ PARA_ERROR(AFS_SYNTAX, "afs syntax error"), \
+ PARA_ERROR(AFS_SIGNAL, "afs caught deadly signal"), \
+ PARA_ERROR(AFS_SOCKET, "afs socket not writable"), \
+
+
+#define MOOD_ERRORS \
+ PARA_ERROR(NO_MOOD, "no mood available"), \
+ PARA_ERROR(DUMMY_ROW, "attempted to access blob dummy object"), \
+
+
+#define MM_ERRORS \
+ PARA_ERROR(MOOD_SYNTAX, "mood syntax error"), \
+
+
+#define ATTRIBUTE_ERRORS \
+ PARA_ERROR(ATTR_SYNTAX, "attribute syntax error"), \
+ PARA_ERROR(NO_ATTRIBUTES, "no attributes defined yet"), \
+ PARA_ERROR(ATT_TABLE_FULL, "no more space left in attribute table"), \
+
+
+#define BLOB_ERRORS \
+ PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
+ PARA_ERROR(INPUT_TOO_LARGE, "input too large for stdin command"), \
+
+
+#define PLAYLIST_ERRORS \
+ PARA_ERROR(PLAYLIST_LOADED, ""), /* not really an error */ \
+ PARA_ERROR(PATH_FOUND, ""), /* not really an error */ \
+ PARA_ERROR(PLAYLIST_EMPTY, "attempted to load empty playlist"), \
+
+
+#define AFT_ERRORS \
+ PARA_ERROR(BAD_AFSI, "invaiid afs info"), \
+ PARA_ERROR(LOCALTIME, "localtime() failed"), \
+ PARA_ERROR(STRFTIME, "strftime() failed"), \
+ PARA_ERROR(BAD_PATH, "invalid path"), \
+ PARA_ERROR(BAD_SORT, "invalid sorting method"), \
+ PARA_ERROR(FNMATCH, "fnmatch error"), \
+ PARA_ERROR(NO_AFHI, "audio format handler info required"), \
+ PARA_ERROR(AFT_SYNTAX, "audio file table syntax error"), \
+ PARA_ERROR(HASH_MISMATCH, "hash mismatch, consider re-add"), \
+
+
+#define USER_LIST_ERRORS \
+ PARA_ERROR(USERLIST, "failed to open user list file"), \