public AsfExtendedContentDescriptionObject(AsfFile file, long position) : base(file, position)
		{
			if (file != null)
			{
				if (!Guid.Equals(AsfGuid.AsfExtendedContentDescriptionObject))
					throw new TagLibException(TagLibError.AsfObjectGuidIncorrect);

				if (OriginalSize < 26)
					throw new TagLibException(TagLibError.AsfObjectSizeTooSmall);

				short count = file.ReadWord();

				for (short i = 0; i < count; i++)
				{
					AsfContentDescriptor descriptor = new AsfContentDescriptor(file);
					descriptors.Add(descriptor);
				}
			}
		}
        public AsfExtendedContentDescriptionObject(AsfFile file, long position) : base(file, position)
        {
            if (file != null)
            {
                if (!Guid.Equals(AsfGuid.AsfExtendedContentDescriptionObject))
                {
                    throw new TagLibException(TagLibError.AsfObjectGuidIncorrect);
                }

                if (OriginalSize < 26)
                {
                    throw new TagLibException(TagLibError.AsfObjectSizeTooSmall);
                }

                short count = file.ReadWord();

                for (short i = 0; i < count; i++)
                {
                    AsfContentDescriptor descriptor = new AsfContentDescriptor(file);
                    descriptors.Add(descriptor);
                }
            }
        }
Esempio n. 3
0
 public void AddDescriptor(AsfContentDescriptor descriptor)
 {
     extDescription.Descriptors.Add(descriptor);
     //AddDescriptor(descriptor);
 }
Esempio n. 4
0
		public void AddDescriptor(AsfContentDescriptor descriptor)
		{
			extDescription.Descriptors.Add(descriptor);
			//AddDescriptor(descriptor);
		}