]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - error.h
check_wav: return error on premature end of file.
[paraslash.git] / error.h
diff --git a/error.h b/error.h
index 59c9554a5bbaecc47780292b7b873c6f0ce76535..84f427986006265a39fba96e34dce00c49ac738f 100644 (file)
--- a/error.h
+++ b/error.h
@@ -33,6 +33,8 @@ enum para_subsystem {
        SS_ORTP_RECV,
        SS_AUDIOD,
        SS_EXEC,
+       SS_SCHED,
+       SS_STDIN,
        SS_SIGNAL,
        SS_STRING,
        SS_STAT,
@@ -84,6 +86,17 @@ enum para_subsystem {
 extern const char **para_errlist[];
 /** \endcond */
 
+#define STDIN_ERRORS \
+       PARA_ERROR(STDIN_READ, "failed to read from stdin"), \
+
+
+#define SCHED_ERRORS \
+       PARA_ERROR(PRE_EOF, "pre_select returned zero"), \
+       PARA_ERROR(POST_EOF, "post_select returned zero"), \
+
+
+
+
 #define NET_ERRORS \
        PARA_ERROR(SEND, "send error"), \
        PARA_ERROR(RECV, "receive error"), \
@@ -319,11 +332,13 @@ extern const char **para_errlist[];
        PARA_ERROR(DCCP_OVERRUN, "dccp output buffer buffer overrun"), \
        PARA_ERROR(DCCP_CONNECT, "dccp connect error"), \
 
+
 #define DCCP_SEND_ERRORS \
        PARA_ERROR(DCCP_BIND, "dccp bind error"), \
        PARA_ERROR(DCCP_LISTEN, "dccp listen error"), \
        PARA_ERROR(DCCP_WRITE, "dccp write error"), \
 
+
 #define FD_ERRORS \
        PARA_ERROR(F_GETFL, "failed to get fd flags"), \
        PARA_ERROR(F_SETFL, "failed to set fd flags"), \
@@ -335,6 +350,8 @@ extern const char **para_errlist[];
        PARA_ERROR(WRITE_SYNTAX, "para_write syntax error"), \
        PARA_ERROR(WRITE_OVERRUN, "buffer overrun"), \
        PARA_ERROR(PREMATURE_END, "premature end of audio file"), \
+       PARA_ERROR(NO_WAV_HEADER, "wave header not found"), \
+       PARA_ERROR(NO_DELAY, "no initial delay"), \
 
 
 #define ALSA_WRITER_ERRORS \
@@ -361,6 +378,7 @@ extern const char **para_errlist[];
 #define FILE_WRITER_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 \
@@ -371,6 +389,7 @@ extern const char **para_errlist[];
        PARA_ERROR(AACDEC_INIT, "failed to init aac decoder"), \
        PARA_ERROR(AAC_DECODE, "aac decode error"), \
 
+
 /**
  * the subsystem shift
  *
@@ -445,6 +464,8 @@ extern const char **para_errlist[];
 
 /** \cond popcorn time */
 SS_ENUM(GUI);
+SS_ENUM(SCHED);
+SS_ENUM(STDIN);
 SS_ENUM(WAV);
 SS_ENUM(COMPRESS);
 SS_ENUM(TIME);