This project has moved. For the latest updates, please go here.

MmException when trying to convert a vorbis stream to a pcmStream

Jul 19, 2016 at 7:10 AM
I am trying to convert vorbis to wav and I am getting an exception, with the additional info "NoDriver calling acmFormatSuggest".
var reader = new VorbisWaveReader("song.ogg");
var converter = WaveFormatConversionStream.CreatePcmStream(reader);
var waveOut = new WaveOut();
waveOut.Init(reader);
waveOut.Play();
the CreatePcmStream method throws the exception.
Coordinator
Jul 19, 2016 at 7:27 PM
What is the WaveFormat of VorbisWaveReader?
Jul 19, 2016 at 10:16 PM
IeeeFloat, stereo, 32 bit, 44.1khz

I'm starting to realize that the problem is CreatePcmStream.

I need to get a pcm wavestream from the vorbiswavereader, and it does not have to run in real time in my app (i can load into memory, process, then return a wavestream if necessary)

what are the best options?
Coordinator
Jul 20, 2016 at 7:17 AM
It should already be playable directly. Have you tried just passing the reader directly into WaveOut.Init?