Example #1
0
 public MP3Stream(Stream stream_1, Enum4 enum4_0, int int_5)
 {
     this.class81_0  = new zzSoundClass81(new Class104(enum4_0));
     this.fileStream = stream_1;
     this.class82_0  = new Class82(this.fileStream, int_5);
     this.int_2      = this.class82_0.method_2();
     this.long_0     = -1L;
     this.class107_0 = null;
     if (!this.method_0())
     {
         throw new Mp3Exception("Mp3 Decoder: Cannot read header.");
     }
     this.short_0      = (short)this.class81_0.method_2();
     this.int_4        = this.class81_0.method_1();
     this.waveFormat_0 = new WaveFormat(this.int_4, (int)this.short_0);
     this.double_0     = (double)(this.waveFormat_0.int_0 * (int)this.waveFormat_0.short_1) / ((double)this.int_3 / 8.0);
     this.long_1       = 0L;
     if (this.class107_0 != null && this.class107_0.method_10())
     {
         this.long_0    = Convert.ToInt64(this.class107_0.method_18((int)(this.fileStream.Length - (long)this.int_2)) * ((double)this.waveFormat_0.int_0 * ((double)this.waveFormat_0.short_1 / 1000.0)));
         this.class83_0 = this.class107_0.method_11();
         if (this.class83_0 != null && this.class83_0.int_2 == -1)
         {
             this.class83_0.int_2 = (int)(this.fileStream.Length - (long)this.int_2);
         }
     }
     if (this.long_0 <= 0L)
     {
         this.long_0 = (long)((double)(this.fileStream.Length - (long)this.int_2) * this.double_0);
     }
 }
Example #2
0
 public override void vmethod_1(Class82 class82_0, zzSoundClass class107_0)
 {
     if (this.int_2 != 0)
     {
         this.float_3 = Class92.Class94.float_0[class82_0.method_13(6)];
     }
 }
Example #3
0
 public MP3Class(Stream stream_1, int int_5, Enum4 enum4_0, int int_6)
 {
     this.class81_0 = new zzSoundClass81[int_5];
     for (int i = 0; i < this.class81_0.Length; i++)
     {
         this.class81_0[i] = new zzSoundClass81(new Class104(enum4_0));
     }
     this.fileStream = stream_1;
     this.class82_0  = new Class82(this.fileStream, int_6);
     this.int_2      = this.class82_0.method_2();
     this.long_0     = -1L;
     this.class107_0 = null;
     if (!this.method_0())
     {
         throw new Mp3Exception("Mp3 Decoder: Cannot read header.");
     }
     this.short_0 = 0;
     for (int j = 0; j < this.class81_0.Length; j++)
     {
         this.short_0 += (short)this.class81_0[j].method_2();
     }
     this.int_4        = this.class81_0[0].method_1();
     this.waveFormat_0 = new WaveFormat(this.int_4, (int)this.short_0);
     this.double_0     = (double)(this.waveFormat_0.int_0 * ((int)this.waveFormat_0.short_1 / this.class81_0.Length)) / ((double)this.int_3 / 8.0);
     this.long_1       = 0L;
     if (this.class107_0 != null && this.class107_0.method_10())
     {
         this.long_0 = Convert.ToInt64(this.class107_0.method_18((int)(this.fileStream.Length - (long)this.int_2) / this.class81_0.Length) * ((double)this.waveFormat_0.int_0 * ((double)this.waveFormat_0.short_1 / 1000.0)));
     }
     if (this.long_0 <= 0L)
     {
         this.long_0 = (long)((double)(this.fileStream.Length - (long)this.int_2) * this.double_0);
     }
 }
Example #4
0
 private void method_0()
 {
     this.class101_0 = new Class101[1];
     this.byte_4     = new byte[4];
     this.byte_3     = new byte[1732];
     this.int_1      = new int[433];
     this.class107_0 = new zzSoundClass();
 }
Example #5
0
 public virtual void vmethod_0(Class82 class82_1, zzSoundClass class107_1, Class80 class80_2, Class80 class80_3, Class84 class84_1, Enum4 enum4_1)
 {
     this.class82_0  = class82_1;
     this.class107_0 = class107_1;
     this.class80_0  = class80_2;
     this.class80_1  = class80_3;
     this.class84_0  = class84_1;
     this.enum4_0    = enum4_1;
 }
Example #6
0
        public Class84 method_5(zzSoundClass class107_0, Class82 class82_0)
        {
            if (!this.bool_0)
            {
                this.method_3(class107_0);
            }
            int int_ = class107_0.method_4();

            this.class84_0.method_6();
            Interface7 @interface = this.method_4(class107_0, class82_0, int_);

            @interface.imethod_0();
            this.class84_0.method_5();
            return(this.class84_0);
        }
Example #7
0
 public override void vmethod_0(Class82 class82_0, zzSoundClass class107_0, Class101 class101_0)
 {
     if ((this.int_2 = class82_0.method_13(4)) == 15)
     {
         throw new DecoderException(DecoderError.IllegalSubbandAllocation, null);
     }
     if (class101_0 != null)
     {
         class101_0.method_0(this.int_2, 4);
     }
     if (this.int_2 != 0)
     {
         this.int_3   = this.int_2 + 1;
         this.float_5 = Class92.Class95.float_1[this.int_2];
         this.float_6 = Class92.Class95.float_2[this.int_2];
     }
 }
Example #8
0
        private void method_3(zzSoundClass class107_0)
        {
            Enum5 @enum = class107_0.method_8();

            class107_0.method_4();
            int num = (@enum == Enum5.const_3 || this.class104_1.method_0() != Enum4.const_0) ? 1 : 2;

            if (this.class84_0 == null)
            {
                this.class84_0 = new Class84(num);
            }
            float[] float_ = this.class105_0.method_0();
            this.class80_0 = new Class80(0, float_);
            if (num == 2)
            {
                this.class80_1 = new Class80(1, float_);
            }
            this.int_1  = num;
            this.int_0  = class107_0.method_7();
            this.bool_0 = true;
        }
Example #9
0
        public zzSoundClass method_3()
        {
            zzSoundClass @class = null;

            try
            {
                @class = this.method_4();
                if (this.bool_1)
                {
                    @class.method_2(this.byte_3);
                    this.bool_1 = false;
                }
            }
            catch (BitstreamException ex)
            {
                if (ex.Error == BitstreamError.InvalidFrame)
                {
                    try
                    {
                        this.method_7();
                        @class = this.method_4();
                        goto IL_7A;
                    }
                    catch (BitstreamException ex2)
                    {
                        if (ex2.Error != BitstreamError.StreamEOF)
                        {
                            throw new BitstreamException(ex2.Error, ex2);
                        }
                        goto IL_7A;
                    }
                }
                if (ex.Error != BitstreamError.StreamEOF)
                {
                    throw new BitstreamException(ex.Error, ex);
                }
                IL_7A :;
            }
            return(@class);
        }
Example #10
0
 public override void vmethod_0(Class82 class82_0, zzSoundClass class107_0, Class101 class101_0)
 {
     this.int_2 = class82_0.method_13(4);
     this.int_4 = class82_0.method_13(4);
     if (class101_0 != null)
     {
         class101_0.method_0(this.int_2, 4);
         class101_0.method_0(this.int_4, 4);
     }
     if (this.int_2 != 0)
     {
         this.int_3   = this.int_2 + 1;
         this.float_5 = Class92.Class95.float_1[this.int_2];
         this.float_6 = Class92.Class95.float_2[this.int_2];
     }
     if (this.int_4 != 0)
     {
         this.int_5    = this.int_4 + 1;
         this.float_9  = Class92.Class95.float_1[this.int_4];
         this.float_10 = Class92.Class95.float_2[this.int_4];
     }
 }
Example #11
0
        private Interface7 method_4(zzSoundClass class107_0, Class82 class82_0, int int_2)
        {
            Interface7 @interface = null;

            switch (int_2)
            {
            case 1:
                if (this.class92_0 == null)
                {
                    this.class92_0 = new Class92();
                    this.class92_0.vmethod_0(class82_0, class107_0, this.class80_0, this.class80_1, this.class84_0, this.class104_1.method_0());
                }
                @interface = this.class92_0;
                break;

            case 2:
                if (this.class93_0 == null)
                {
                    this.class93_0 = new Class93();
                    this.class93_0.vmethod_0(class82_0, class107_0, this.class80_0, this.class80_1, this.class84_0, this.class104_1.method_0());
                }
                @interface = this.class93_0;
                break;

            case 3:
                if (this.class85_0 == null)
                {
                    this.class85_0 = new Class85(class82_0, class107_0, this.class80_0, this.class80_1, this.class84_0, this.class104_1.method_0());
                }
                @interface = this.class85_0;
                break;
            }
            if (@interface == null)
            {
                throw new DecoderException(DecoderError.UnsupportedLayer, null);
            }
            return(@interface);
        }
Example #12
0
        public bool method_0()
        {
            zzSoundClass @class = this.class82_0.method_3();

            if (@class == null)
            {
                return(false);
            }
            if (this.class107_0 == null)
            {
                this.class107_0 = @class;
            }
            try
            {
                this.int_3 = @class.method_21();
                this.class81_0.method_5(@class, this.class82_0);
            }
            finally
            {
                this.class82_0.method_7();
            }
            return(true);
        }
Example #13
0
 public abstract void vmethod_1(Class82 class82_0, zzSoundClass class107_0);
Example #14
0
 public override void vmethod_0(Class82 class82_0, zzSoundClass class107_0, Class101 class101_0)
 {
     base.vmethod_0(class82_0, class107_0, class101_0);
 }