On Thu, 2006-07-13 at 21:11 +0200, Dirk Jagdmann wrote:
Libsndsfile is
plain C, but will do what you want without any fuss.
You could write a WAV specific C++ wrapper on top of this in a few minutes.
libsndfile is superb, but sometimes you don't want to link against
external libraries in your code. I have some structs/classes which I use
if in-memory-handling of wav files is sufficient. You can have a look at
them at:
http://cubic.org/~doj/ebay/wav.tar.gz
If you have to handle large files you should go the libsndfile way.
please don't make this mistake.
after 5 years of doing its own audio file handling, ardour finally
switched to using libsndfile for everything.
you may think you know your applications limitations and don't need
libsndfile, but i claim that you're wrong. sooner or later, you will be
asked for, or will realize the need for, a change that will be much
easier if you just accept that the full range of functionality offered
by libsndfile is the place to start.
--p