Example #1
0
        private void Read(ReadStyle propertiesStyle)
        {
            // Look for an ID3v2 tag
            long id3v2_location = FindId3v2();

            if (id3v2_location >= 0)
            {
                id3v2_tag = new Id3v2Tag(this, id3v2_location);
            }


            // Look for an ID3v1 tag
            long id3v1_location = FindId3v1();

            if (id3v1_location >= 0)
            {
                id3v1_tag = new Id3v1Tag(this, id3v1_location);
            }


            // Look for an APE tag
            long ape_location = FindApe(id3v1_location >= 0);

            if (ape_location >= 0)
            {
                ape_tag = new ApeTag(this, ape_location);
            }


            tag.SetTags(id3v2_tag, ape_tag, id3v1_tag);

            FindMpegTag(TagTypes.Id3v2, true);

            if (propertiesStyle != ReadStyle.None)
            {
                properties = new MpegProperties(this, propertiesStyle);
            }
        }
Example #2
0
		private void Read(ReadStyle propertiesStyle)
		{
			// Look for an ID3v2 tag
			long id3v2_location = FindId3v2();

			if (id3v2_location >= 0)
				id3v2_tag = new Id3v2Tag(this, id3v2_location);


			// Look for an ID3v1 tag
			long id3v1_location = FindId3v1();

			if (id3v1_location >= 0)
				id3v1_tag = new Id3v1Tag(this, id3v1_location);


			// Look for an APE tag
			long ape_location = FindApe(id3v1_location >= 0);

			if (ape_location >= 0)
				ape_tag = new ApeTag(this, ape_location);


			tag.SetTags(id3v2_tag, ape_tag, id3v1_tag);

			FindMpegTag(TagTypes.Id3v2, true);

			if (propertiesStyle != ReadStyle.None)
				properties = new MpegProperties(this, propertiesStyle);
		}