1
0

Lyrics3.h 580 B

12345678910111213141516171819202122232425
  1. #ifndef NULLSOFT_IN_MP3_LYRICS3_H
  2. #define NULLSOFT_IN_MP3_LYRICS3_H
  3. #include <bfc/platform/types.h>
  4. class Lyrics3
  5. {
  6. public:
  7. Lyrics3();
  8. ~Lyrics3();
  9. bool HasData() { return hasData; }
  10. bool IsDirty() { return dirty; }
  11. void Clear();
  12. void ResetDirty() { dirty=0; };
  13. int Decode(const void *data, size_t datalen);
  14. // return -1 for empty, 1 for OK, 0 for "don't understand tag name"
  15. int GetString(const char *tag, wchar_t *data, int dataLen);
  16. int SetString(const char *tag, const wchar_t *data);
  17. private:
  18. bool hasData;
  19. bool dirty;
  20. wchar_t *title, *album, *artist;
  21. };
  22. #endif