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

Suited to a media player? Extendable?

Apr 23, 2009 at 1:58 PM
Hi there,
I have just started writing a full-blown media player in C# and am considering NAudio as the audio playback library. Would it be recommended for this?

FLAC playback is fairly important to me, would this be much work to add? I don't mind working on it myself, but I am guessing this would not be a trivial task for someone with no audio history?

Thank you for the help!
Apr 24, 2009 at 1:49 PM
You certainly can try using NAudio. Playback of non-WAV formats is not brilliant at the moment. MP3 works, but there is no WMA etc. To add FLAC, the main difficulty would be wrapping a FLAC decoding library with P/Invoke interop wrappers (it is possible that some of the work might already be done in the open source domain if you search around enough). If you can handle that, adding FLAC support would not be too hard.

May 4, 2009 at 11:38 AM
Hi Mark,

Sorry it took me so long to answer, thanks for your reply.

Just to let you know, I'm going to focus on the other side of the media player (an MPD client) first, so I can get a working body of code to start with. Once that's done, I do hope to use NAudio for the local playback and contribute to the project.

One other question; as far as I can see, NAudio doesn't support reading tags from files. Is this something that could be added or is felt to be the job of a separate library?

Thanks for the help, I look forward to using NAudio!
May 14, 2009 at 5:46 PM

Hi there,

NAudio doesn't have tag support. While it could be added, probably the best way would be to find a managed wrapper of a library that already does this, as there are a lot of different standards to support.