WasabiMetadata.h 1.3 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "../Agave/Metadata/svc_metatag.h"
  3. #include "Metadata.h"
  4. // {9937E02D-205B-4964-86A9-F784D9C05F5D}
  5. static const GUID MP3StreamMetadataGUID =
  6. { 0x9937e02d, 0x205b, 0x4964, { 0x86, 0xa9, 0xf7, 0x84, 0xd9, 0xc0, 0x5f, 0x5d } };
  7. class MP3StreamMetadata : public svc_metaTag
  8. {
  9. private:
  10. /* These methods are to be used by api_metadata */
  11. const wchar_t *GetName();
  12. GUID getGUID(); // this needs to be the same GUID that you use when registering your service factory
  13. int getFlags(); // how this service gets its info
  14. int isOurFile(const wchar_t *filename);
  15. int metaTag_open(const wchar_t *filename);
  16. void metaTag_close(); // self-destructs when this is called (you don't need to call serviceFactory->releaseInterface)
  17. /* user API starts here */
  18. const wchar_t *enumSupportedTag(int n, int *datatype = NULL); // returns a list of understood tags. might not be complete (see note [1])
  19. int getTagSize(const wchar_t *tag, size_t *sizeBytes); // always gives you BYTES, not characters (be careful with your strings)
  20. int getMetaData(const wchar_t *tag, __int8 *buf, int buflenBytes, int datatype = METATYPE_STRING); // buflen is BYTES, not characters (be careful with your strings)
  21. int setMetaData(const wchar_t *tag, const __int8 *buf, int buflenBytes, int datatype = METATYPE_STRING);
  22. private:
  23. Metadata metadata;
  24. RECVS_DISPATCH;
  25. };