From b29f73c819ff8445b71963d883364e315b7a12d8 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sun, 6 Jun 2004 19:41:03 +0000 Subject: mechanism for updating metadata while decoding vorbis comments are updated on the fly for streams need to decode icy metadata buffering of metadata needs to be hardened, to ensure that player has already read a particular metachunk or passed over it git-svn-id: https://svn.musicpd.org/mpd/trunk@1358 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/metadataChunk.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/metadataChunk.h (limited to 'src/metadataChunk.h') diff --git a/src/metadataChunk.h b/src/metadataChunk.h new file mode 100644 index 000000000..05e1c907e --- /dev/null +++ b/src/metadataChunk.h @@ -0,0 +1,22 @@ +#ifndef METADATA_CHUNK_H +#define METADATA_CHUNK_H + +#define METADATA_BUFFER_LENGTH 1024 + +#include "tag.h" + +typedef struct _MetadataChunk { + int name; + int title; + int artist; + int album; + char buffer[METADATA_BUFFER_LENGTH]; +} MetadataChunk; + +void initMetadataChunk(MetadataChunk *); + +MpdTag * metadataChunkToMpdTagDup(MetadataChunk * chunk); + +void copyMpdTagToMetadataChunk(MpdTag * tag, MetadataChunk * chunk); + +#endif -- cgit v1.2.3