From c51ad71efaa975c64f6ad31dce5578307a5cba7b Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 18 May 2004 13:13:55 +0000 Subject: 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 --- src/decode.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/decode.h') 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 #include -#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; -- cgit v1.2.3