Subject: Re: [linux-audio-dev] libsndfile (was Sample conversion tools)
From: Erik de Castro Lopo (erikd-lad_AT_mega-nerd.com)
Date: Tue Jun 04 2002 - 12:57:53 EEST
On 04 Jun 2002 03:09:47 -0600
Josh Green <jgreen_AT_users.sourceforge.net> wrote:
> Wow, I was not aware of that. I thought that "sf_read_short" should only
> be called for 16 bit audio, sf_read_int for 24 bit, etc.
Version 1 (ready RealSoonNow (tm) honest :-)) even does something sensible
when you read say a 24 bit PCM file using the sf_read_short () function. The
rule for version 1 is as follows:
"whenever integer data is moved from one sized container to another sized
container, the most signicant bit in the source container will become the
most significant bit in the destination container."
> Perhaps I
> should read the manual again to see how obvious this feature of
> libsndfile is in the docs.
Please do. Maybe I didn't put enough emphasis on this feature in the docs.
It certainly is pretty obvious if you look at the programs in the example/
directory of the distribution.
Erik
-- +-----------------------------------------------------------+ Erik de Castro Lopo nospam_AT_mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "Microsoft, and other companies with shoddy security, ....." -- Bruce Schneier, cryto-guru, to a US Senate committee.
This archive was generated by hypermail 2b28 : Tue Jun 04 2002 - 12:49:44 EEST