Пример #1
0
        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);
		}
Пример #3
0
		public virtual void  defineSound(DefineSound tag)
		{
		}
Пример #4
0
		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;
		}