VoxVox2Wav Method (BinaryReader, WaveWriter) |
Namespace: Alvas.Audio
[Missing <param name="br"/> documentation for "M:Alvas.Audio.Vox.Vox2Wav(System.IO.BinaryReader,Alvas.Audio.WaveWriter)"]
[Missing <param name="ww"/> documentation for "M:Alvas.Audio.Vox.Vox2Wav(System.IO.BinaryReader,Alvas.Audio.WaveWriter)"]
string voxFile = "in.vox"; int samplesPerSec = 8000; string wavFile = "out.wav"; BinaryReader br = new BinaryReader(File.OpenRead(voxFile)); IntPtr format = AudioCompressionManager.GetPcmFormat(1, 16, samplesPerSec); WaveWriter ww = new WaveWriter(File.Create(wavFile), AudioCompressionManager.FormatBytes(format)); Vox.Vox2Wav(br, ww); br.Close(); ww.Close();