0

How convert mp3 to wave with n audio whit out save it to hard disk? i saw this sample

public static void Mp3ToWav(string mp3File, string outputFile)
{
    using (Mp3FileReader reader = new Mp3FileReader(mp3File))
    {
        WaveFileWriter.CreateWaveFile(outputFile, reader);
    }
}

but it save the resualt in hard disk!

4

2 回答 2

0

CreateWaveFile creates a WAV file. If you just want raw PCM, call reader.Read until it returns no more data. If you want an in-memory WAV file, then use the constructor of WaveFileWriter that takes a Stream and write into that.

于 2013-04-27T16:51:00.353 回答