This project has moved and is read-only. For the latest updates, please go here.

Play 3gp File

Dec 12, 2014 at 3:51 PM
Hi All,

I am using NAudio in a project that I have built in Android as well. I am trying to make my Windows side able to play .3gp audio that is recorded in the Android version. I have the codecs installed on my computer for .3gp and the files can be played in Windows Media Player but I am getting an error that NAudio is not able to find the codec. Is .3gp not supported at all in NAudio or do I need to do something besides just making sure the necessary codec is installed on the computer?

Thank you,
Dec 28, 2014 at 4:01 PM
NAudio doesn't know the file format for .3gp files or what WaveFormat to request a codec for. It it an ACM codec you have? If so, you can use the code from the NAudioDemo, to enumerate the codecs and discover details of what WaveFormat structure the 3gp codec is expecting. Once you have this information, it will allow you to open an AcmStream for that codec, and pass the contents of your .3gp file through. If it's an MFT (less likely but possible), then use the WpfDemo application to explore the media types for the installed Media Foundation decoders.
Jan 5, 2015 at 10:30 PM
Thank you! I will check this out...