Dec 24, 2010 at 2:15 PM
Edited Dec 24, 2010 at 2:16 PM
After adding playback support for WMA and OGG, FLAC was next on my plan.
I've just added FLAC playback support (FLACFileReader) that allows NAudio to play FLAC files (currently 16-bit only).
It seems to be working just fine (I also tested reposition).
The code is using the official libFlac C DLL (which has BSD license - so it should be fine for NAudio Library) using a P/Invokes wrapper named LibFlacSharp.
My library (NAudioFlac) has an MIT license.
@Mark - if you find this code usable, please feel free to integrate the FLACFileReader to NAudio. Once/If you do this I'll get rid of my library like we did with WMA.
Also, LibFlacSharp has an encoding interface which I did not use - you might want to write a FLAC writer, it should be easy and add a cool loseless encoding feature to NAudio.
A binary demo is available at:
The latest sources are available from Practice# SVN: (under Trunk\NAudioFLAC folder)
Or to checkout: http://code.google.com/p/practicesharp/source/checkout