Exemple #1
0
 public Stream16(Stream stream_1, WaveFormat waveFormat_1, BE_CONFIG be_CONFIG_1)
     : base(stream_1, waveFormat_1)
 {
     try
     {
         this.be_CONFIG_0 = be_CONFIG_1;
         uint num = LameEncoder.beInitStream(this.be_CONFIG_0, ref this.uint_1, ref this.uint_2, ref this.uint_0);
         if (num != 0u)
         {
             throw new ApplicationException(string.Format("Lame_encDll.beInitStream failed with the error code {0}", num));
         }
         this.byte_0 = new byte[this.uint_1 * 2u];
         this.byte_1 = new byte[this.uint_2];
     }
     catch
     {
         base.Close();
         throw;
     }
 }
Exemple #2
0
 public static extern uint beInitStream(BE_CONFIG be_CONFIG_0, ref uint uint_0, ref uint uint_1, ref uint uint_2);