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

Reading and saving a custom file format.

Sep 19, 2015 at 8:39 PM
I'm working on a game engine that will read the audio files from a custom format. Can I load sound data from a custom sound format (preferably without having to modify the NAudio source)? Also can I load a regular sound file (like .wav, .ogg, etc.) and get the uncompressed, unmodified raw sound data (sound bytes, whatever it is called) and save it to a file (I need this in order to convert sound files to my custom format)?
Sep 22, 2015 at 7:19 AM
NAudio lets you use the codecs that are on your system. So this usually means being able to play things like MP3, WMA etc. If you don't need Windows XP support, the MediaFoundationReader will probably be the easiest way to do this. There are also add-on libraries for NAudio such as NAudio.Vorbis which should help you out if you want to use something like ogg