naudio / NAudio

Audio and MIDI library for .NET
MIT License
5.56k stars 1.1k forks source link

"NoDriver calling acmFormatSuggest" Exception with multi channel wav file #374

Open Ano9506 opened 6 years ago

Ano9506 commented 6 years ago

I'm trying to open a wav file which contains 5 channels of audio (it's a surround sound file) with the audiofilereader class. But at this line of code, I get the NAudio.MMException "NoDriver calling acmFormatSuggest":

Dim reader As New AudioFileReader(File)

After a short research, I found that this error has something to do with mp3 codecs etc., but I only got this error with wav files which contains multiple channels (more than 2).

jim-software commented 6 years ago

Have you looked at this? https://markheath.net/post/nodriver-calling-acmformatsuggest

WAV files with more than 2 channels are an extension to the original WAV format. Maybe they need the proper codec. I'm out of my comfort zone on this one. Good luck.

Ano9506 commented 6 years ago

Thanks for your answer. It looks like I missed that fifth option. I will have a look at that