public string GetInfo() { string info = $"\n### Tags ###\n"; for (int tagNumber = 0; tagNumber < tags.Length; tagNumber++) { TagSectionByTag tag = tags[tagNumber]; info += $"Tag at {tag.lTagTime} says [{tag.sComment}]\n"; } return(info); }
public void ReadTagSection() { log.Debug("Reading Tag Section"); tagSection = new TagSection(); tagSection.tags = new TagSectionByTag[sectionMap.Tag.itemCount]; for (int tagNumber = 0; tagNumber < sectionMap.Tag.itemCount; tagNumber++) { log.Debug($"Reading tag Section for tag {tagNumber}"); TagSectionByTag thisTag = new TagSectionByTag(); int firstByte = sectionMap.Tag.byteStart; firstByte += sectionMap.Tag.itemSize * tagNumber; br.BaseStream.Seek(firstByte, SeekOrigin.Begin); thisTag.lTagTime = FileReadInt(-1, 1); thisTag.sComment = FileReadString(-1, 56).Trim(); thisTag.nTagType = FileReadShort(-1, 1); thisTag.nVoiceTagIndex = FileReadShort(-1, 1); tagSection.tags[tagNumber] = thisTag; } }