Esempio n. 1
0
 public Mp3Class(Stream stream1, int int5, Enum4 enum40, int int6)
 {
     _class810 = new ZzSoundClass81[int5];
     for (var i = 0; i < _class810.Length; i++)
     {
         _class810[i] = new ZzSoundClass81(new Class104(enum40));
     }
     FileStream = stream1;
     _class820  = new Class82(FileStream, int6);
     _int2      = _class820.method_2();
     _long0     = -1L;
     _class1070 = null;
     if (!method_0())
     {
         throw new Mp3Exception("Mp3 Decoder: Cannot read header.");
     }
     _short0 = 0;
     for (var j = 0; j < _class810.Length; j++)
     {
         _short0 += (short)_class810[j].method_2();
     }
     _int4       = _class810[0].method_1();
     WaveFormat0 = new WaveFormat(_int4, _short0);
     _double0    = WaveFormat0.int_0 * (WaveFormat0.short_1 / _class810.Length) / (_int3 / 8.0);
     _long1      = 0L;
     if (_class1070 != null && _class1070.method_10())
     {
         _long0 = Convert.ToInt64(_class1070.method_18((int)(FileStream.Length - _int2) / _class810.Length) *
                                  (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0)));
     }
     if (_long0 <= 0L)
     {
         _long0 = (long)((FileStream.Length - _int2) * _double0);
     }
 }
Esempio n. 2
0
 public override void vmethod_1(Class82 class820, ZzSoundClass class1070)
 {
     if (Int2 != 0)
     {
         Float3 = Float0[class820.method_13(6)];
     }
 }
Esempio n. 3
0
 public Mp3Stream(Stream stream1, Enum4 enum40, int int5)
 {
     _class810  = new ZzSoundClass81(new Class104(enum40));
     FileStream = stream1;
     _class820  = new Class82(FileStream, int5);
     _int2      = _class820.method_2();
     _long0     = -1L;
     _class1070 = null;
     if (!method_0())
     {
         throw new Mp3Exception("Mp3 Decoder: Cannot read header.");
     }
     _short0     = (short)_class810.method_2();
     _int4       = _class810.method_1();
     WaveFormat0 = new WaveFormat(_int4, _short0);
     _double0    = WaveFormat0.int_0 * WaveFormat0.short_1 / (_int3 / 8.0);
     _long1      = 0L;
     if (_class1070 != null && _class1070.method_10())
     {
         _long0 = Convert.ToInt64(_class1070.method_18((int)(FileStream.Length - _int2)) *
                                  (WaveFormat0.int_0 * (WaveFormat0.short_1 / 1000.0)));
         _class830 = _class1070.method_11();
         if (_class830 != null && _class830.Int2 == -1)
         {
             _class830.Int2 = (int)(FileStream.Length - _int2);
         }
     }
     if (_long0 <= 0L)
     {
         _long0 = (long)((FileStream.Length - _int2) * _double0);
     }
 }
Esempio n. 4
0
 public override void vmethod_1(Class82 class820, ZzSoundClass class1070)
 {
     if (Int2 == 0)
     {
         return;
     }
     Float3 = Float0[class820.method_13(6)];
     Float7 = Float0[class820.method_13(6)];
 }
Esempio n. 5
0
 public virtual void vmethod_0(Class82 class821, ZzSoundClass class1071, Class80 class802, Class80 class803,
                               Class84 class841, Enum4 enum41)
 {
     Class820  = class821;
     Class1070 = class1071;
     Class800  = class802;
     Class801  = class803;
     Class840  = class841;
     Enum40    = enum41;
 }
Esempio n. 6
0
            public override bool vmethod_2(Class82 class820)
            {
                var result = base.vmethod_2(class820);

                if (Int4 != 0)
                {
                    Float8 = class820.method_13(Int5);
                }
                return(result);
            }
Esempio n. 7
0
 public override bool vmethod_2(Class82 class820)
 {
     if (Int2 != 0)
     {
         Float4 = class820.method_13(Int3);
     }
     if (++Int1 == 12)
     {
         Int1 = 0;
         return(true);
     }
     return(false);
 }
Esempio n. 8
0
        public Class84 method_5(ZzSoundClass class1070, Class82 class820)
        {
            if (!_bool0)
            {
                method_3(class1070);
            }
            var int_ = class1070.method_4();

            _class840.method_6();
            var @interface = method_4(class1070, class820, int_);

            @interface.imethod_0();
            _class840.method_5();
            return(_class840);
        }
Esempio n. 9
0
 public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010)
 {
     if ((Int2 = class820.method_13(4)) == 15)
     {
         throw new DecoderException(DecoderError.IllegalSubbandAllocation, null);
     }
     if (class1010 != null)
     {
         class1010.method_0(Int2, 4);
     }
     if (Int2 != 0)
     {
         Int3   = Int2 + 1;
         Float5 = Float1[Int2];
         Float6 = Float2[Int2];
     }
 }
Esempio n. 10
0
        private INterface7 method_4(ZzSoundClass class1070, Class82 class820, int int2)
        {
            INterface7 @interface = null;

            switch (int2)
            {
            case 1:
                if (_class920 == null)
                {
                    _class920 = new Class92();
                    _class920.vmethod_0(class820, class1070, _class800, _class801, _class840,
                                        _class1041.method_0());
                }
                @interface = _class920;
                break;

            case 2:
                if (_class930 == null)
                {
                    _class930 = new Class93();
                    _class930.vmethod_0(class820, class1070, _class800, _class801, _class840,
                                        _class1041.method_0());
                }
                @interface = _class930;
                break;

            case 3:
                if (_class850 == null)
                {
                    _class850 = new Class85(class820, class1070, _class800, _class801, _class840,
                                            _class1041.method_0());
                }
                @interface = _class850;
                break;
            }
            if (@interface == null)
            {
                throw new DecoderException(DecoderError.UnsupportedLayer, null);
            }
            return(@interface);
        }
Esempio n. 11
0
 public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010)
 {
     Int2 = class820.method_13(4);
     Int4 = class820.method_13(4);
     if (class1010 != null)
     {
         class1010.method_0(Int2, 4);
         class1010.method_0(Int4, 4);
     }
     if (Int2 != 0)
     {
         Int3   = Int2 + 1;
         Float5 = Float1[Int2];
         Float6 = Float2[Int2];
     }
     if (Int4 != 0)
     {
         Int5    = Int4 + 1;
         Float9  = Float1[Int4];
         Float10 = Float2[Int4];
     }
 }
Esempio n. 12
0
 public abstract bool vmethod_2(Class82 class820);
Esempio n. 13
0
 public abstract void vmethod_1(Class82 class820, ZzSoundClass class1070);
Esempio n. 14
0
 public abstract void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010);
Esempio n. 15
0
 public override bool vmethod_2(Class82 class820)
 {
     return(base.vmethod_2(class820));
 }
Esempio n. 16
0
 public override void vmethod_0(Class82 class820, ZzSoundClass class1070, Class101 class1010)
 {
     base.vmethod_0(class820, class1070, class1010);
 }