I am currently implementing tag writing functions for the next TAK version.

Following the APEv2-specification in the Hydrogenaudio Wiki the same flags are beeing used for the global flags in the tag's Header/Footer and the private item flags in the item header.

Because the specification doesn't differentiate between the flags in tag header/footer and item header, i have two questions:

1) How should the item type flags (bits 1 to 2) in the tag's header and footer be set?

2) What to do with the flags in bits 29 to 31 in the item header? Maybe "Tag contains a header " and "this is the (item) header, not the footer "?

Hopefully someone can tell me, what is good practice.

Thomas