Click or drag to resize
AudioCompressionManagerMp3ToMono Method (String, Byte)
Converts Mp3 Stereo into Mono

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static IntPtr Mp3ToMono(
	string inMp3,
	out byte[] dataMp3Mono
)

Parameters

inMp3
Type: SystemString
input Mp3 file
dataMp3Mono
Type: SystemByte
Mp3 Mono data

Return Value

Type: IntPtr
Mp3 Mono format
Examples
This example shows simple using of Mp3ToMono method.
string mp3 = @"d:\down\stereo.mp3";
byte[] dataMp3Mono;
IntPtr formatMp3Mono = AudioCompressionManager.Mp3ToMono(mp3, out dataMp3Mono);
using (Mp3Writer mw = new Mp3Writer(File.Create(mp3 + ".mono.mp3")))
{
    mw.WriteData(dataMp3Mono);
}
See Also