From a94845ee00d3107af7ffbe89bf1ec46380ae24ff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:41:05 +0200 Subject: 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. --- src/inputPlugins/audiofile_plugin.c | 3 +++ src/inputPlugins/wavpack_plugin.c | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/inputPlugins') 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 +/* 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 +/* pick 1020 since its devisible for 8,16,24, and 32-bit audio */ +#define CHUNK_SIZE 1020 + #define ERRORLEN 80 static struct { -- cgit v1.2.3