AudioCompressionManagerWaveToMono Method (String, Byte) |
Converts Wave Stereo into Mono
Namespace: Alvas.AudioAssembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax public static IntPtr WaveToMono(
string inWave,
out byte[] dataPcmMono
)
Public Shared Function WaveToMono (
inWave As String,
<OutAttribute> ByRef dataPcmMono As Byte()
) As IntPtr
public:
static IntPtr WaveToMono(
String^ inWave,
[OutAttribute] array<unsigned char>^% dataPcmMono
)
Parameters
- inWave
- Type: SystemString
input Wave file - dataPcmMono
- Type: SystemByte
Pcm Mono data
Return Value
Type:
IntPtrPcm 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