Beispiel #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);
     }
 }
Beispiel #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);
     }
 }