public override bool Equals(System.Object object_Renamed)
        {
            bool isEqual = false;

            if (base.Equals(object_Renamed) && (object_Renamed is DefineSound))
            {
                DefineSound defineSound = (DefineSound)object_Renamed;

                if ((defineSound.format == this.format) && (defineSound.rate == this.rate) && (defineSound.size == this.size) && (defineSound.type == this.type) && (defineSound.sampleCount == this.sampleCount) && ArrayUtil.equals(defineSound.data, this.data))
                {
                    isEqual = true;
                }
            }

            return(isEqual);
        }
示例#2
0
		public override void  defineSound(DefineSound tag)
		{
			tags.Add(tag);
		}
		public virtual void  defineSound(DefineSound tag)
		{
		}
		private Tag decodeDefineSound(int length)
		{
			DefineSound t;
			t = new DefineSound();
			int pos = r.Offset;
			
			int id = r.readUI16();
			
			r.syncBits();
			
			t.format = r.readUBits(4);
			t.rate = r.readUBits(2);
			t.size = r.readUBits(1);
			t.type = r.readUBits(1);
			t.sampleCount = r.readUI32();
			
			length -= (r.Offset - pos);
			
			t.data = new byte[length];
			r.readFully(t.data);
			
			dict.add(id, t);
			return t;
		}