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

Reading CAF files in NAudio

May 25, 2011 at 7:22 PM


I was wondering if it's possible to read CAF files in NAudio?

I need that in my application, and it would be great if you can help me with that.



May 25, 2011 at 7:27 PM

I'm afraid that isn't a format supported in NAudio. It's a new one on me. Looks like it is well documented though, so if someone wanted to contribute a CAF file reader

It seems that, like WAV, it is a container format, able to hold audio compressed in several other formats


May 25, 2011 at 9:57 PM

I have no experience in doing that, otherwise I would love to contribute. Is there any tutorial that I can read, so I can write the CAF File reader?


May 25, 2011 at 10:06 PM

You would need to create a class derived from WaveStream. The AiffFileReader (in the latest source code) would be a good example of what needs to be done.


May 27, 2011 at 10:58 PM

What about AMR files? Should I write e Reader for that file type as well?

May 28, 2011 at 7:21 AM

that's another I hadn't come across before. That might be more tricky though since it seems that AMR files contain ACELP encoded audio, and Windows doesn't come with an ACM ACELP decoder so there would be no easy way for NAudio to play it.