TagData GetTagArg (const TagArg *tagList, uint32 tag,TagData defaultValue)
FindTagArg()
to locate the specified tag. If it is found, it returns the ta_Arg value from the found TagArg. Otherwise, it returns the default value supplied. This is handy when resolving a tag list that has optional tags that have suitable default values.
void dosomething (const TagArg *tags)
{
uint32 amplitude = (uint32)GetTagData (tags, MY_TAG_AMPLITUDE, (TagData)0x7fff);
.
.
.
}
FindTagArg
(), NextTagArg()