aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-18 13:13:55 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-18 13:13:55 +0000
commitc51ad71efaa975c64f6ad31dce5578307a5cba7b (patch)
tree348881ea4c5b04bd17e04e881905dbacef296869 /src/decode.h
parent6c24180516f823985f564ba013607b47f70afa81 (diff)
downloadmpd-c51ad71efaa975c64f6ad31dce5578307a5cba7b.tar.gz
mpd-c51ad71efaa975c64f6ad31dce5578307a5cba7b.tar.xz
mpd-c51ad71efaa975c64f6ad31dce5578307a5cba7b.zip
rework stuff so that we can use mime-type of streams to detect type of file
git-svn-id: https://svn.musicpd.org/mpd/trunk@1062 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/decode.h b/src/decode.h
index 39c6ec34d..a766efd44 100644
--- a/src/decode.h
+++ b/src/decode.h
@@ -27,19 +27,22 @@
#include <stdio.h>
#include <sys/param.h>
-#define DECODE_TYPE_MP3 0
-#define DECODE_TYPE_OGG 1
-#define DECODE_TYPE_FLAC 2
-#define DECODE_TYPE_AUDIOFILE 3
-#define DECODE_TYPE_MP4 4
-#define DECODE_TYPE_AAC 5
+#define DECODE_TYPE_FILE 0
+#define DECODE_TYPE_URL 1
#define DECODE_STATE_STOP 0
#define DECODE_STATE_DECODE 1
#define DECODE_ERROR_NOERROR 0
-#define DECODE_ERROR_UNKTYPE 1
-#define DECODE_ERROR_FILE 2
+#define DECODE_ERROR_UNKTYPE -10
+#define DECODE_ERROR_FILE -20
+
+#define DECODE_SUFFIX_MP3 1
+#define DECODE_SUFFIX_OGG 2
+#define DECODE_SUFFIX_FLAC 3
+#define DECODE_SUFFIX_AAC 4
+#define DECODE_SUFFIX_MP4 5
+#define DECODE_SUFFIX_WAVE 6
typedef struct _DecoderControl {
volatile mpd_sint8 state;