AcmNotPossible calling acmStreamOpen

Apr 21, 2013 at 8:49 PM
Hi, I would like to play mp3 file using NAudio. I have tried to use MP3FileReader to open MP3 file stream. But after opening the file, it gave me the error of "AcmNotPossible calling acmStreamOpen".

This is my code to open the stream of MP3.
private WaveStream CreateInputStream(string fileName)
        {
            WaveChannel32 inputStream;
            if (fileName.EndsWith(".mp3"))
            {
                WaveStream mp3Reader = new Mp3FileReader(fileName);
                inputStream = new WaveChannel32(mp3Reader);
            }
            else
            {
                throw new InvalidOperationException("Unsupported extension");
            }
            volumeStream = inputStream;
            return volumeStream;
        }
Coordinator
Apr 22, 2013 at 1:13 PM
What OS are you using? There needs to be an ACM MP3 codec installed for this to work