aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Input/in_mp3/WasabiMetadata.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Plugins/Input/in_mp3/WasabiMetadata.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Plugins/Input/in_mp3/WasabiMetadata.h')
-rw-r--r--Src/Plugins/Input/in_mp3/WasabiMetadata.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Src/Plugins/Input/in_mp3/WasabiMetadata.h b/Src/Plugins/Input/in_mp3/WasabiMetadata.h
new file mode 100644
index 00000000..dcd5dc24
--- /dev/null
+++ b/Src/Plugins/Input/in_mp3/WasabiMetadata.h
@@ -0,0 +1,30 @@
+#pragma once
+#include "../Agave/Metadata/svc_metatag.h"
+#include "Metadata.h"
+
+// {9937E02D-205B-4964-86A9-F784D9C05F5D}
+static const GUID MP3StreamMetadataGUID =
+ { 0x9937e02d, 0x205b, 0x4964, { 0x86, 0xa9, 0xf7, 0x84, 0xd9, 0xc0, 0x5f, 0x5d } };
+
+class MP3StreamMetadata : public svc_metaTag
+{
+private:
+ /* These methods are to be used by api_metadata */
+ const wchar_t *GetName();
+ GUID getGUID(); // this needs to be the same GUID that you use when registering your service factory
+ int getFlags(); // how this service gets its info
+ int isOurFile(const wchar_t *filename);
+ int metaTag_open(const wchar_t *filename);
+ void metaTag_close(); // self-destructs when this is called (you don't need to call serviceFactory->releaseInterface)
+
+ /* user API starts here */
+ const wchar_t *enumSupportedTag(int n, int *datatype = NULL); // returns a list of understood tags. might not be complete (see note [1])
+ int getTagSize(const wchar_t *tag, size_t *sizeBytes); // always gives you BYTES, not characters (be careful with your strings)
+ int getMetaData(const wchar_t *tag, __int8 *buf, int buflenBytes, int datatype = METATYPE_STRING); // buflen is BYTES, not characters (be careful with your strings)
+ int setMetaData(const wchar_t *tag, const __int8 *buf, int buflenBytes, int datatype = METATYPE_STRING);
+private:
+ Metadata metadata;
+
+ RECVS_DISPATCH;
+};
+