Click or drag to resize
WaveReaderMakeMP3 Method
Changes Wave stream to MP3 stream if Wave stream contains MPEG Layer 3 data.

Namespace: Alvas.Audio
Assembly: Alvas.Audio (in Alvas.Audio.dll) Version: 2016.0.6173.41573
Syntax
public void MakeMP3(
	Stream stream
)

Parameters

stream
Type: System.IOStream
stream with resulting mp3 header and data
Examples
This example shows simple using of MakeMP3 method.
string wavFile = "in.wav";
using (WaveReader wr = new WaveReader(File.OpenRead(wavFile)))
{
    string mp3File = "out.mp3";
    using (FileStream fs = File.Create(mp3File))
    {
        wr.MakeMP3(fs);
    }
}
See Also