Click or drag to resize
VoxVox2Mp3 Method (BinaryReader, BinaryWriter, Int32)
Converts Dialogic .vox (adpcm) data to Mp3 audio data.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static void Vox2Mp3(
	BinaryReader br,
	BinaryWriter bw,
	int samplesPerSec
)

Parameters

br
Type: System.IOBinaryReader

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

bw
Type: System.IOBinaryWriter

[Missing <param name="bw"/> documentation for "M:Alvas.Audio.Vox.Vox2Mp3(System.IO.BinaryReader,System.IO.BinaryWriter,System.Int32)"]

samplesPerSec
Type: SystemInt32

[Missing <param name="samplesPerSec"/> documentation for "M:Alvas.Audio.Vox.Vox2Mp3(System.IO.BinaryReader,System.IO.BinaryWriter,System.Int32)"]

Examples
This example shows simple using of Vox2Mp3 method.
string voxFile = "in.vox";
string mp3File = "out.mp3";
int samplesPerSec = 8000;
BinaryReader br = new BinaryReader(File.OpenRead(voxFile));
Mp3Writer mw = new Mp3Writer(File.Create(mp3File));
Vox.Vox2Mp3(br, mw, samplesPerSec);
mw.Close();
br.Close();
See Also