Exemple #1
0
        public override void PrintSpecificMetadata(object structure, StringBuilder builder)
        {
            Bxstm.PrintSpecificMetadata(structure, builder);

            var bfstm = structure as BxstmStructure;

            if (bfstm == null)
            {
                throw new InvalidDataException("Could not parse file metadata.");
            }

            if (bfstm.Regions == null)
            {
                return;
            }

            builder.AppendLine("\nAudio Regions");
            builder.AppendLine(new string('-', 40));
            builder.AppendLine("Start sample - End sample\n");

            for (int i = 0; i < bfstm.Regions.Count; i++)
            {
                builder.AppendLine($"{i}: {bfstm.Regions[i].StartSample} - {bfstm.Regions[i].EndSample}");
            }
        }
Exemple #2
0
 public override Common ToCommon(object structure) => Bxstm.ToCommon(structure);
Exemple #3
0
 public override void PrintSpecificMetadata(object structure, StringBuilder builder)
 => Bxstm.PrintSpecificMetadata(structure, builder);
Exemple #4
0
 public override Common ToCommon(object metadata) => Bxstm.ToCommon(metadata);