Click or drag to resize
AudioCompressionManagerConvert Method (IAudioReader, WaveWriter, Boolean)
Converts the audio data from the specified old format to the new format.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public static void Convert(
	IAudioReader wr,
	WaveWriter ww,
	bool fastConversion
)

Parameters

wr
Type: Alvas.AudioIAudioReader

[Missing <param name="wr"/> documentation for "M:Alvas.Audio.AudioCompressionManager.Convert(Alvas.Audio.IAudioReader,Alvas.Audio.WaveWriter,System.Boolean)"]

ww
Type: Alvas.AudioWaveWriter

[Missing <param name="ww"/> documentation for "M:Alvas.Audio.AudioCompressionManager.Convert(Alvas.Audio.IAudioReader,Alvas.Audio.WaveWriter,System.Boolean)"]

fastConversion
Type: SystemBoolean

[Missing <param name="fastConversion"/> documentation for "M:Alvas.Audio.AudioCompressionManager.Convert(Alvas.Audio.IAudioReader,Alvas.Audio.WaveWriter,System.Boolean)"]

Examples
This example shows simple using of Convert method.
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();
See Also