[LAD] Help on Sndfile

Gabriel M. Beddingfield gabriel at teuton.org
Thu Dec 31 14:43:52 UTC 2009



On Thu, 31 Dec 2009, gerald mwangi wrote:

> Hello guys, i need some help with libsndfile.
> My question is: when calling sf_readf_float   (SNDFILE *sndfile, float
> *ptr, sf_count_t frames) where sndfile is a stereo wave file, how are
> the channels interleaved?

ptr[2*N] (evens) are channel 1 (left)
ptr[(2*N)+1] (odds) are channel 2 (right)

HTH,
gabriel




More information about the Linux-audio-dev mailing list