Playing AAC (.m4a) Files

Jan 9, 2013 at 4:37 AM

Does naudio have any plans to support playing AAC (.m4a) files? Right now when you try to load one into AudioFileReader

fileWaveStream = new AudioFileReader(@"c:\music\test.m4a");

Jan 9, 2013 at 4:46 AM

The issue is with CreateReaderStream(string fileName) in audioFileReader it doesn't look for anything other than ".wav",".mp3", and ".aiff". I'm I just stupid and missing something and should be using another FileReader? 

Coordinator
Jan 11, 2013 at 9:18 PM

You will be able to play AAC in NAudio 1.7 using the MediaFoundationReader so long as you are using Windows 7 and above. You can try this out by building the latest code or getting a prerelease from NuGet if you are interested.

Mark