Subject: Re: [linux-audio-dev] Re: Nicola Bernardini's sound file library comments
From: est_AT_hyperreal.org
Date: su elo 15 1999 - 19:02:07 EDT
Erik de Castro Lopo discourseth:
OK, Bruce. :)
>
> 3) libsndfile has more comprehensive error reporting
That may be an area where it's superior to libaudiofile as well. Much
of the error checking of the latter seems to be burried in assert()
statements!
Is libsndfile reentrant?
What reasons are there for prefering it over libaudiofile given the
momentum behind the latter?
> 1) An interface is designed to limit name space pollution. All libsndfile
> functions are named sf_* and all constants are named SF_*
You might want to have an option to build a C++ version which actually
uses its own C++ namespace.
> 3) sample rate convert on read (ie open a file, see that it is not the
> desired sample rate, call something like sf_set_samplerate (), then
> read data at the correct sample rate using the normal read functions.
Feel free to rip resampling out of oolaboola. :)
Eric
This archive was generated by hypermail 2b28 : pe maalis 10 2000 - 07:25:52 EST