[linux-audio-user] 24 bit replacement for SOX

Erik de Castro Lopo erikd-lad at mega-nerd.com
Fri Dec 17 21:04:47 EST 2004

On Fri, 17 Dec 2004 19:32:58 -0500
Jesse Chappell <jesse at essej.net> wrote:

> Kai, I did notice that the SRC code in ecasound uses the simple
> API of libsamplerate, but it expects to use it blockwise with
> a continuous audio stream. 

The simple API was designed to convert a whole file at once.

Please, please, please do not use the simple API on multiple
blocks of one contiguous piece of the same audio, unless you
*know* there is silence around the join point.

> The more advanced APIs maintain state
> between calls that I think are necessary when using it with a stream.

Yes, the callback and process API both store state between calls.

Good catch Jesse.

  Erik de Castro Lopo  nospam at mega-nerd.com (Yes it's valid)
"Every time microshaft's stock price drops again, I rejoice. I
want to see that bunch of criminals brought to their knees.
Preferably at the chopping block."
-- rixt in http://linuxtoday.com/stories/20659_flat.html

More information about the Linux-audio-user mailing list