aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:41:05 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:41:05 +0200
commita94845ee00d3107af7ffbe89bf1ec46380ae24ff (patch)
treea7074bf912585c2deab455e0046d3c9ab080562a /src/inputPlugins
parent15c9352bb632277fc6e787114ae5af60e6dc8597 (diff)
downloadmpd-a94845ee00d3107af7ffbe89bf1ec46380ae24ff.tar.gz
mpd-a94845ee00d3107af7ffbe89bf1ec46380ae24ff.tar.xz
mpd-a94845ee00d3107af7ffbe89bf1ec46380ae24ff.zip
moved global variable "ob" to outputBuffer.h
This releases several include file dependencies. As a side effect, "CHUNK_SIZE" isn't defined by decoder_api.h anymore, so we have to define it directly in the plugins which need it. It just isn't worth it to add it to the decoder plugin API.
Diffstat (limited to 'src/inputPlugins')
-rw-r--r--src/inputPlugins/audiofile_plugin.c3
-rw-r--r--src/inputPlugins/wavpack_plugin.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/inputPlugins/audiofile_plugin.c b/src/inputPlugins/audiofile_plugin.c
index 2fbe580fa..c3046770b 100644
--- a/src/inputPlugins/audiofile_plugin.c
+++ b/src/inputPlugins/audiofile_plugin.c
@@ -26,6 +26,9 @@
#include <audiofile.h>
+/* pick 1020 since its devisible for 8,16,24, and 32-bit audio */
+#define CHUNK_SIZE 1020
+
static int getAudiofileTotalTime(char *file)
{
int total_time;
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index 7a37e69b2..2253feb41 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -28,6 +28,9 @@
#include <wavpack/wavpack.h>
+/* pick 1020 since its devisible for 8,16,24, and 32-bit audio */
+#define CHUNK_SIZE 1020
+
#define ERRORLEN 80
static struct {