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