From 43ee3c3b366e6a8df088a5684431403f09138ffa Mon Sep 17 00:00:00 2001 From: Eric Wollesen Date: Fri, 12 Sep 2008 16:00:01 +0200 Subject: shout: send shout metadata Support sending metadata to a shout server using shout_metadata_new() and shout_metadata_add(). The Ogg Vorbis encoder does not support this currently. [mk: this patch was separated from Eric's patch "Refactor and cleanup of shout Ogg and MP3 audio outputs", I added a description] --- src/audioOutputs/audioOutput_shout.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/audioOutputs/audioOutput_shout.h') diff --git a/src/audioOutputs/audioOutput_shout.h b/src/audioOutputs/audioOutput_shout.h index 295a7e14f..eee2ccad2 100644 --- a/src/audioOutputs/audioOutput_shout.h +++ b/src/audioOutputs/audioOutput_shout.h @@ -51,6 +51,7 @@ typedef struct _ogg_vorbis_data { struct shout_data { shout_t *shout_conn; + shout_metadata_t *shout_meta; int shout_error; ogg_vorbis_data od; @@ -83,7 +84,8 @@ int shout_ogg_encoder_clear_encoder(struct shout_data *sd); int init_encoder(struct shout_data *sd); -int shout_ogg_encoder_send_metadata(struct shout_data * sd); +int shout_ogg_encoder_send_metadata(struct shout_data * sd, + char *song, size_t size); void shout_ogg_encoder_encode(struct shout_data *sd, const char *chunk, size_t len); -- cgit v1.2.3