Exemplo n.º 1
0
            private void MetadataCallback(Prototype metadataIn)
            {
                if (DataFileSize != -1 && metadataIn.MetadataType == FlaCdotNet.MetadataType.VorbisComment)
                {
                    return;
                }
                if (metadataIn.MetadataType == FlaCdotNet.MetadataType.VorbisComment)
                {
                    var metadata = metadataIn as VorbisComment;

                    for (uint i = 0; i < metadata.NumComments; i++)
                    {
                        if (metadata.GetComment(i).FieldName == "LEN")
                        {
                            DataFileSize = int.Parse(metadata.GetComment(i).FieldValue) * 8;
                            for (int j = 0; j < DataFileSize; j++)
                            {
                                BitPermutationIndices.Add(j);
                            }
                            return;
                        }
                    }
                }
                else if (metadataIn.MetadataType == FlaCdotNet.MetadataType.StreamInfo)
                {
                    var metadata = metadataIn as StreamInfo;
                    StreamInfoPrinter.PrintStreamInfoConsole(metadata);
                }
            }
Exemplo n.º 2
0
 public static void MetadataCallback(Prototype metadataIn)
 {
     if (metadataIn.MetadataType == FlaCdotNet.MetadataType.StreamInfo)
     {
         var metadata = metadataIn as StreamInfo;
         StreamInfoPrinter.PrintStreamInfoConsole(metadata);
     }
 }