Exemple #1
0
 public bool method_0()
 {
     try
     {
         Class83 class2 = new Class83();
         Class94.dictionary_0 = new Dictionary <string, object>();
         if ((Class94.dictionary_0 != null) && class2.method_0(ref Class94.dictionary_0))
         {
             Class94.string_0 = Convert.ToString(Class94.dictionary_0["ACCEPT_WEB_SERVER"]);
             Class94.bool_0   = Convert.ToBoolean(Class94.dictionary_0["UPLOADNOW"]);
             Class94.bool_1   = Convert.ToBoolean(Class94.dictionary_0["INTERVALFLAG"]);
             Class94.int_0    = Convert.ToInt32(Class94.dictionary_0["INTERVALTIME"]);
             Class94.bool_2   = Convert.ToBoolean(Class94.dictionary_0["ACCUMULATEFLAG"]);
             Class94.int_1    = Convert.ToInt32(Class94.dictionary_0["ACCUMULATENUM"]);
             int num = Convert.ToInt32(Class94.dictionary_0["DATASIZE"]);
             if (num > 0)
             {
                 Class87.int_3 = num;
                 Class87.int_2 = num;
             }
             return(true);
         }
         return(false);
     }
     catch (Exception exception)
     {
         Class101.smethod_1("get Dzdzxx info failed!" + exception.ToString());
         return(false);
     }
 }
Exemple #2
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);
     }
 }
Exemple #3
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);
     }
 }
Exemple #4
0
 public void method_2(byte[] byte_1)
 {
     int num;
     if (this.enum3_0 == Enum3.const_1)
     {
         num = ((this.enum5_0 == Enum5.const_3) ? 17 : 32);
     }
     else
     {
         num = ((this.enum5_0 == Enum5.const_3) ? 9 : 17);
     }
     try
     {
         string @string = Encoding.UTF8.GetString(byte_1, num, 4);
         if (@string.Equals("Xing") || @string.Equals("Info"))
         {
             this.bool_2 = true;
             this.int_9 = -1;
             this.int_11 = -1;
             this.int_10 = -1;
             byte[] array = new byte[100];
             int num2 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + 4));
             int num3 = 8;
             if ((num2 & 1) != 0)
             {
                 this.int_9 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num3));
                 num3 += 4;
             }
             if ((num2 & 2) != 0)
             {
                 this.int_11 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num3));
                 num3 += 4;
             }
             if ((num2 & 4) != 0)
             {
                 Buffer.BlockCopy(byte_1, num + num3, array, 0, array.Length);
                 num3 += array.Length;
                 this.class83_0 = new Class83(array, this.int_11);
             }
             if ((num2 & 8) != 0)
             {
                 this.int_10 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num3));
                 num3 += 4;
             }
         }
     }
     catch (IndexOutOfRangeException exception_)
     {
         throw new BitstreamException("Xing Header Corrupted", exception_);
     }
     num = 32;
     try
     {
         if (Encoding.UTF8.GetString(byte_1, num, 4).Equals("VBRI"))
         {
             this.bool_2 = true;
             this.int_9 = -1;
             this.int_11 = -1;
             this.int_10 = -1;
             this.int_10 = (int)zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 8));
             this.int_11 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + 10));
             this.int_9 = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + 14));
             int[] array2 = new int[(int)zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 18))];
             short num4 = zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 20));
             short num5 = zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 22));
             short num6 = zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + 24));
             int num7 = 26;
             switch (num5)
             {
             case 1:
             {
                 int i = 0;
                 while (i < array2.Length)
                 {
                     array2[i] = (int)((short)byte_1[num + num7] * num4);
                     i++;
                     num7++;
                 }
                 break;
             }
             case 2:
             {
                 int j = 0;
                 while (j < array2.Length)
                 {
                     array2[j] = (int)(zzSoundClass.smethod_1(BitConverter.ToInt16(byte_1, num + num7)) * num4);
                     j++;
                     num7 += 2;
                 }
                 break;
             }
             case 3:
             {
                 int k = 0;
                 while (k < array2.Length)
                 {
                     array2[k] = Struct8.smethod_0(Struct8.smethod_3(byte_1, num + num7, true)) * (int)num4;
                     k++;
                     num7 += 3;
                 }
                 break;
             }
             case 4:
             {
                 int l = 0;
                 while (l < array2.Length)
                 {
                     array2[l] = zzSoundClass.smethod_0(BitConverter.ToInt32(byte_1, num + num7)) * (int)num4;
                     l++;
                     num7 += 4;
                 }
                 break;
             }
             default:
                 throw new Exception("Size per table entry in bytes - is bigger then 4: " + num5);
             }
             this.class83_0 = new Class83(array2, num6);
         }
     }
     catch (IndexOutOfRangeException exception_2)
     {
         throw new BitstreamException("VBRI Header Corrupted", exception_2);
     }
 }