diff options
author | Eric Wong <normalperson@yhbt.net> | 2005-07-30 10:28:43 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2005-07-30 10:28:43 +0000 |
commit | a196714eaa7a559f582176ef5c8681f6877509e0 (patch) | |
tree | dd9be968bcb982b38d0b996861b7159308f65bbb /src/inputPlugins | |
parent | fb175591c3ed354296458bf00957a9662c442a00 (diff) | |
download | mpd-a196714eaa7a559f582176ef5c8681f6877509e0.tar.gz mpd-a196714eaa7a559f582176ef5c8681f6877509e0.tar.xz mpd-a196714eaa7a559f582176ef5c8681f6877509e0.zip |
update musepack decoding code to use the newer mpcdec library
libmusepack is deprecated
git-svn-id: https://svn.musicpd.org/mpd/trunk@3408 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/mpc_plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c index f4c1aa8df..5e5cd3cfa 100644 --- a/src/inputPlugins/mpc_plugin.c +++ b/src/inputPlugins/mpc_plugin.c @@ -18,7 +18,7 @@ #include "../inputPlugin.h" -#ifdef HAVE_MUSEPACK +#ifdef HAVE_MPCDEC #include "../utils.h" #include "../audio.h" @@ -32,7 +32,7 @@ #include <unistd.h> #include <stdlib.h> #include <string.h> -#include <musepack/musepack.h> +#include <mpcdec/mpcdec.h> #include <errno.h> #include <math.h> @@ -58,7 +58,7 @@ static mpc_int32_t mpc_read_cb(void * vdata, void * ptr, mpc_int32_t size) { return ret; } -static BOOL mpc_seek_cb(void * vdata, mpc_int32_t offset) { +static mpc_bool_t mpc_seek_cb(void * vdata, mpc_int32_t offset) { MpcCallbackData * data = (MpcCallbackData *)vdata; return seekInputStream(data->inStream , offset, SEEK_SET) < 0 ? 0 : 1; @@ -70,7 +70,7 @@ static mpc_int32_t mpc_tell_cb(void * vdata) { return (long)(data->inStream->offset); } -static BOOL mpc_canseek_cb(void * vdata) { +static mpc_bool_t mpc_canseek_cb(void * vdata) { MpcCallbackData * data = (MpcCallbackData *)vdata; return data->inStream->seekable; |