예제 #1
0
파일: Stream16.cs 프로젝트: uwx/Open-GHTCP
 public Stream16(Stream stream1, WaveFormat waveFormat1, BeConfig beConfig1) : base(stream1, waveFormat1)
 {
     try
     {
         _beConfig0 = beConfig1;
         var num = LameEncoder.beInitStream(_beConfig0, ref _uint1, ref _uint2, ref _uint0);
         if (num != 0u)
         {
             throw new ApplicationException(
                       string.Format("Lame_encDll.beInitStream failed with the error code {0}", num));
         }
         _byte0 = new byte[_uint1 * 2u];
         _byte1 = new byte[_uint2];
     }
     catch
     {
         base.Close();
         throw;
     }
 }
예제 #2
0
 public static extern uint beInitStream(BeConfig beConfig0, ref uint uint0, ref uint uint1, ref uint uint2);