1
0

MetadataKeys.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. namespace MetadataKeys
  3. {
  4. const int EXTENDED_KEYS_OFFSET = 1000; // The offset to where the extended id's start
  5. enum
  6. {
  7. UNKNOWN=-1,
  8. ARTIST=0,
  9. ALBUM_ARTIST=1,
  10. ALBUM=2,
  11. TITLE=3,
  12. URI=4,
  13. GENRE=5,
  14. YEAR=6,
  15. TRACK=7, // in ifc_metadata::GetField, this might return something like "2/12" for track 2 out of 12. in ifc_metadata::GetInteger, you will just get the track number (use TRACKS for total)
  16. DISC=8, // in ifc_metadata::GetField, this might return something like "1/2" for disc 1 out of 2. in ifc_metadata::GetInteger, you will just get the disc number (use DISCS for total)
  17. BITRATE=9,
  18. COMPOSER=10,
  19. PUBLISHER=11,
  20. BPM=12,
  21. COMMENT=13,
  22. DISCS=14, // only valid for use in ifc_metadata::GetInteger
  23. FILE_SIZE=15,
  24. FILE_TIME=16,
  25. LENGTH=17,
  26. PLAY_COUNT=18,
  27. RATING=19,
  28. SERVER=20,
  29. MIME_TYPE=21,
  30. TRACK_GAIN=22,
  31. TRACK_PEAK=23,
  32. ALBUM_GAIN=24,
  33. ALBUM_PEAK=25,
  34. TRACKS=26, // only valid for use in ifc_metadata::GetInteger
  35. PREGAP=27,
  36. POSTGAP=28,
  37. STAT=29,
  38. CATEGORY=30,
  39. DIRECTOR=31,
  40. PRODUCER=32,
  41. LAST_PLAY=33,
  42. LAST_UPDATE=34,
  43. ADDED=35, // date added
  44. CLOUD=36, // used by pmp_cloud for the 'all sources' view
  45. METAHASH=37, // used by pmp_cloud for the 'all sources' view
  46. NUM_OF_METADATA_KEYS,
  47. };
  48. }