Click or drag to resize
AudioCompressionManagerWaveToMono Method (String, Byte)
Converts Wave Stereo into Mono

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static IntPtr WaveToMono(
	string inWave,
	out byte[] dataPcmMono
)

Parameters

inWave
Type: SystemString
input Wave file
dataPcmMono
Type: SystemByte
Pcm Mono data

Return Value

Type: IntPtr
Pcm Mono format
Examples
This example shows simple using of WaveToMono method.
string wav = @"d:\down\stereo.wav";
byte[] dataPcmMono;
IntPtr formatPcmMono = AudioCompressionManager.WaveToMono(wav, out dataPcmMono);
using (WaveWriter ww = new WaveWriter(File.Create(wav + ".mono.wav"), 
    AudioCompressionManager.FormatBytes(formatPcmMono)))
{
    ww.WriteData(dataPcmMono);
}
See Also