Page 1 of 1

Retrieve audio block size during module Open()

Posted: 25 Feb 2015 14:29
by wolfgang
Hi everybody,

In my new HRTF filter module SOFAlizer I need to access the number of samples in one audio block passed to my audio processing function DoWork().
In DoWork() I can simply use p_in_buf->i_nb_samples. But can I also retrieve this number in the Open() function, already?

I need that for efficient initialization of an FFT calculation.
Thanks a lot!
Wolfgang

Re: Retrieve audio block size during module Open()

Posted: 25 Feb 2015 14:51
by Rémi Denis-Courmont
No. This is not constant.

Re: Retrieve audio block size during module Open()

Posted: 25 Feb 2015 14:56
by wolfgang
I see, thanks!
Are there fixed bounds for it?

Re: Retrieve audio block size during module Open()

Posted: 25 Feb 2015 15:28
by Rémi Denis-Courmont
At least one, at most small enough it fit in memory.

Re: Retrieve audio block size during module Open()

Posted: 25 Feb 2015 15:47
by wolfgang
Ok. Thanks a lot for your help!