Re: [LAD] Help on Sndfile

From: Gabriel M. Beddingfield <gabriel@email-addr-hidden>
Date: Thu Dec 31 2009 - 16:43:52 EET

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

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Thu Dec 31 20:15:01 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 31 2009 - 20:15:01 EET