I get the exception "NoDriver calling acmFormatSuggest" when executing this function:
private static WaveChannel32 OpenMp3Stream(string fileName)
{
WaveChannel32 inputStream;
WaveStream mp3Reader = new Mp3FileReader(fileName);
WaveStream pcmStream = WaveFormatConversionStream.CreatePcmStream(mp3Reader);
WaveStream blockAlignedStream = new BlockAlignReductionStream(pcmStream);
inputStream = new WaveChannel32(blockAlignedStream);
return inputStream;
}
On this line:
WaveStream pcmStream = WaveFormatConversionStream.CreatePcmStream(mp3Reader);
I've tried to change the platform of NAudio.dll (from x86 to x64 and vice-versa), but that didn't help.
Is there another way to play an MP3 file from MemoryStream or how do I fix this error?