+#define FD_ERRORS \
+ PARA_ERROR(F_GETFL, "failed to get fd flags"), \
+ PARA_ERROR(F_SETFL, "failed to set fd flags"), \
+ PARA_ERROR(FGETS, "fgets error"), \
+
+
+#define WRITE_ERRORS \
+ PARA_ERROR(WRITE_SYNTAX, "para_write syntax error"), \
+ PARA_ERROR(PREMATURE_END, "premature end of audio file"), \
+ PARA_ERROR(NO_WAV_HEADER, "wave header not found"), \
+ PARA_ERROR(WAV_HEADER_SUCCESS, "successfully read wave header"), \
+ PARA_ERROR(NO_DELAY, "no initial delay"), \
+ PARA_ERROR(DELAY_TIMEOUT, "initial delay timeout"), \
+
+
+#define ALSA_WRITE_ERRORS \
+ PARA_ERROR(BROKEN_CONF, "Broken alsa configuration"), \
+ PARA_ERROR(ACCESS_TYPE, "alsa access type not available"), \
+ PARA_ERROR(SAMPLE_FORMAT, "sample format not available"), \
+ PARA_ERROR(CHANNEL_COUNT, "channels count not available"), \
+ PARA_ERROR(HW_PARAMS, "unable to install hw params"), \
+ PARA_ERROR(SW_PARAMS, "unable to install sw params"), \
+ PARA_ERROR(BAD_PERIOD, "can not use period equal to buffer size"), \
+ PARA_ERROR(GET_XFER, "unable to obtain xfer align"), \
+ PARA_ERROR(SET_XFER, "snd_pcm_sw_params_set_xfer_align() failed"), \
+ PARA_ERROR(ALSA_WRITE, "alsa write error"), \
+ PARA_ERROR(PCM_OPEN, "unable to open pcm"), \
+ PARA_ERROR(SND_PCM_INFO, "pcm info error"), \
+ PARA_ERROR(GET_BUFFER_TIME, "snd_pcm_hw_params_get_buffer_time_max() failed"), \
+ PARA_ERROR(SET_BUFFER_TIME, "snd_pcm_hw_params_set_buffer_time_near() failed"), \
+ PARA_ERROR(SET_RATE, "snd_pcm_hw_params_set_rate_near failed"), \
+ PARA_ERROR(START_THRESHOLD, "snd_pcm_sw_params_set_start_threshold() failed"), \
+ PARA_ERROR(STOP_THRESHOLD, "snd_pcm_sw_params_set_stop_threshold() failed"), \
+
+
+#define FILE_WRITE_ERRORS \
+ PARA_ERROR(FW_WRITE, "file writer write error"), \
+ PARA_ERROR(FW_OPEN, "file writer: can not open output file"), \
+ PARA_ERROR(FW_NO_FILE, "task started without open file"), \
+
+
+#define WRITE_COMMON_ERRORS \
+ PARA_ERROR(WRITE_COMMON_SYNTAX, "syntax error in write option"), \
+ PARA_ERROR(WNG_EOF, "wng: end of file"), \
+
+
+#define AACDEC_ERRORS \
+ PARA_ERROR(AACDEC_INIT, "failed to init aac decoder"), \
+ PARA_ERROR(AAC_DECODE, "aac decode error"), \
+ PARA_ERROR(AAC_OVERRUN, "aac output buffer overrun"), \
+
+
+#define CHUNK_QUEUE_ERRORS \
+ PARA_ERROR(QUEUE, "packet queue overrun"), \