On Mon, 16 May 2016 17:50:24 -0700, David Griffith wrote:
> On May 16, 2016 3:25:48 PM PDT, David Griffith
> <dave@email-addr-hidden> wrote:
>
>> Earlier you set up filebuffer like this:
>>
>>buflen = BUFFSIZE * sf_info[0].channels;
>>filebuffer = malloc(buflen * sizeof(float));
>>
>>The size of filebuffer is BUFFSIZE float-sized frames. Therefore when
>>you specify BUFFSIZE as the number of floats to read, they all fit in
>>filebuffer.
>
> Sorry. I meant BUFFSIZE as the number of /frames/.
Yes, but if I understand correctly when using sf_read_* functions,
sndfile expect the number of items as the third parameters and NOT the
number of frames.
As per FAQ a frame is 1 item per channel, so I expect BUFFSIZE * channels
to be the correct value to pass, but it doesn't work!?
Ciao,
Andrea
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Tue May 17 12:15:02 2016
This archive was generated by hypermail 2.1.8 : Tue May 17 2016 - 12:15:02 EEST