AudioCompressionManagerConvert Method (IAudioReader, WaveWriter, Boolean) |
Namespace: Alvas.Audio
[Missing <param name="wr"/> documentation for "M:Alvas.Audio.AudioCompressionManager.Convert(Alvas.Audio.IAudioReader,Alvas.Audio.WaveWriter,System.Boolean)"]
[Missing <param name="ww"/> documentation for "M:Alvas.Audio.AudioCompressionManager.Convert(Alvas.Audio.IAudioReader,Alvas.Audio.WaveWriter,System.Boolean)"]
[Missing <param name="fastConversion"/> documentation for "M:Alvas.Audio.AudioCompressionManager.Convert(Alvas.Audio.IAudioReader,Alvas.Audio.WaveWriter,System.Boolean)"]
Mp3Reader mr = new Mp3Reader(File.OpenRead("in.mp3")); IntPtr formatMp3 = mr.ReadFormat(); IntPtr formatPcm = AudioCompressionManager.GetCompatibleFormat(formatMp3, AudioCompressionManager.PcmFormatTag); WaveWriter ww = new WaveWriter(File.Create("out.wav"), AudioCompressionManager.FormatBytes(formatPcm)); AudioCompressionManager.Convert(mr, ww, false); mr.Close(); ww.Close();