public static Class16 smethod_2(Stream stream_1, TimeSpan timeSpan_0, int int_3, int int_4, bool bool_1) { WaveFormat waveFormat = new WaveFormat(int_3, 16, bool_1 ? 2 : 1); Stream16 stream = new Stream16(stream_1, waveFormat, new BE_CONFIG(waveFormat, (uint)int_4)); uint uint_ = (uint)stream.vmethod_1().Position; byte[] array = new byte[stream.method_0() * 2]; Class16 result; try { int num = 0; int num2 = (int)(timeSpan_0.TotalSeconds * (double)waveFormat.int_1); int count; while ((count = Math.Min(num2 - num - array.Length, array.Length)) > 0) { stream.Write(array, 0, count); num += array.Length; } result = new Class16(waveFormat, uint_, (uint)stream.vmethod_1().Length, int_4 * 1000); } finally { stream.method_1(); } return(result); }
public static Class16 smethod_0(GenericAudioStream stream1_0, Stream stream_1, int int_3, int int_4) { WaveFormat waveFormat = stream1_0.vmethod_0(); if (waveFormat.waveFormatTag_0 != WaveFormatTag.PCM || waveFormat.short_2 != 16) { stream1_0 = new Stream4(stream1_0, 16); waveFormat = stream1_0.vmethod_0(); } Stream16 stream = new Stream16(stream_1, waveFormat, (waveFormat.int_0 == int_3) ? new BE_CONFIG(waveFormat, (uint)int_4) : new BE_CONFIG(waveFormat, (uint)int_4, (uint)int_3)); uint uint_ = (uint)stream.vmethod_1().Position; byte[] array = new byte[stream.method_0() * 2]; Class16 result; try { int count; while ((count = stream1_0.Read(array, 0, array.Length)) > 0) { stream.Write(array, 0, count); } result = new Class16(new WaveFormat(int_3, (int)waveFormat.short_0), uint_, (uint)stream.vmethod_1().Length, int_4 * 1000); } finally { stream.method_1(); } return(result); }
public static Class16 smethod_0(GenericAudioStream stream1_0, Stream stream_1, int int_3, int int_4) { WaveFormat waveFormat = stream1_0.vmethod_0(); if (waveFormat.waveFormatTag_0 != WaveFormatTag.PCM || waveFormat.short_2 != 16) { stream1_0 = new Stream4(stream1_0, 16); waveFormat = stream1_0.vmethod_0(); } Stream16 stream = new Stream16(stream_1, waveFormat, (waveFormat.int_0 == int_3) ? new BE_CONFIG(waveFormat, (uint)int_4) : new BE_CONFIG(waveFormat, (uint)int_4, (uint)int_3)); uint uint_ = (uint)stream.vmethod_1().Position; byte[] array = new byte[stream.method_0() * 2]; Class16 result; try { int count; while ((count = stream1_0.Read(array, 0, array.Length)) > 0) { stream.Write(array, 0, count); } result = new Class16(new WaveFormat(int_3, (int)waveFormat.short_0), uint_, (uint)stream.vmethod_1().Length, int_4 * 1000); } finally { stream.method_1(); } return result; }
public static Class16 smethod_1(Stream stream_1, Class16 class16_0, int int_3) { return(Stream16.smethod_2(stream_1, class16_0.timeSpan_0, class16_0.method_3(), int_3, false)); }
public static Class16 smethod_2(Stream stream_1, TimeSpan timeSpan_0, int int_3, int int_4, bool bool_1) { WaveFormat waveFormat = new WaveFormat(int_3, 16, bool_1 ? 2 : 1); Stream16 stream = new Stream16(stream_1, waveFormat, new BE_CONFIG(waveFormat, (uint)int_4)); uint uint_ = (uint)stream.vmethod_1().Position; byte[] array = new byte[stream.method_0() * 2]; Class16 result; try { int num = 0; int num2 = (int)(timeSpan_0.TotalSeconds * (double)waveFormat.int_1); int count; while ((count = Math.Min(num2 - num - array.Length, array.Length)) > 0) { stream.Write(array, 0, count); num += array.Length; } result = new Class16(waveFormat, uint_, (uint)stream.vmethod_1().Length, int_4 * 1000); } finally { stream.method_1(); } return result; }