Converts the audio data from the specified old format to the new format.
true if the conversion is fast; otherwise, the conversion is high-quality.Returns the audio data in the new format.
This example shows simple using of Convert method.
Mp3Reader mr = new Mp3Reader(File.OpenRead("in.mp3"));
IntPtr formatMp3 = mr.ReadFormat();
byte[] dataMp3 = mr.ReadData();
mr.Close();
IntPtr formatPcm = AudioCompressionManager.GetCompatibleFormat(formatMp3,
AudioCompressionManager.PcmFormatTag);
byte[] dataPcm = AudioCompressionManager.Convert(formatMp3, formatPcm, dataMp3, false);
WaveWriter ww = new WaveWriter(File.Create("out.wav"),
AudioCompressionManager.FormatBytes(formatPcm));
ww.WriteData(dataPcm);
ww.Close();
AudioCompressionManager Class | Alvas.Audio Namespace | AudioCompressionManager.Convert Overload List