Click or drag to resize
VoxVox2Wav Method (BinaryReader, WaveWriter)
Decodes Dialogic .vox (adpcm) format data to wave PCM-data format

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static void Vox2Wav(
	BinaryReader br,
	WaveWriter ww
)

Parameters

br
Type: System.IOBinaryReader

[Missing <param name="br"/> documentation for "M:Alvas.Audio.Vox.Vox2Wav(System.IO.BinaryReader,Alvas.Audio.WaveWriter)"]

ww
Type: Alvas.AudioWaveWriter

[Missing <param name="ww"/> documentation for "M:Alvas.Audio.Vox.Vox2Wav(System.IO.BinaryReader,Alvas.Audio.WaveWriter)"]

Examples
This example shows simple using of Vox2Wav method.
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();
See Also