From d50a3d513eb0452e762f1e4eeb717318958cd83c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 22 Feb 2009 17:52:37 +0100 Subject: shout: removed shout_plugin.h There are no plugins left which require shout_plugin.h. Moved the struct declaration to shout_plugin.c. --- src/output/shout_plugin.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'src/output/shout_plugin.c') diff --git a/src/output/shout_plugin.c b/src/output/shout_plugin.c index f4a488f6f..7887e2922 100644 --- a/src/output/shout_plugin.c +++ b/src/output/shout_plugin.c @@ -16,16 +16,43 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "shout_plugin.h" +#include "output_api.h" #include "encoder_plugin.h" #include "encoder_list.h" +#include +#include + #include #include #include +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "shout" + #define DEFAULT_CONN_TIMEOUT 2 +struct shout_buffer { + unsigned char data[32768]; + size_t len; +}; + +struct shout_data { + struct audio_output *audio_output; + + shout_t *shout_conn; + shout_metadata_t *shout_meta; + + struct encoder *encoder; + + float quality; + int bitrate; + + int timeout; + + struct shout_buffer buf; +}; + static int shout_init_count; static const struct encoder_plugin * -- cgit v1.2.3