Retrieve audio block size during module Open()

This forum is about all development around libVLC.
wolfgang
New Cone
New Cone
Posts: 6
Joined: 04 Oct 2014 18:20

Retrieve audio block size during module Open()

Postby wolfgang » 25 Feb 2015 14:29

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Retrieve audio block size during module Open()

Postby Rémi Denis-Courmont » 25 Feb 2015 14:51

No. This is not constant.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

wolfgang
New Cone
New Cone
Posts: 6
Joined: 04 Oct 2014 18:20

Re: Retrieve audio block size during module Open()

Postby wolfgang » 25 Feb 2015 14:56

I see, thanks!
Are there fixed bounds for it?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Retrieve audio block size during module Open()

Postby Rémi Denis-Courmont » 25 Feb 2015 15:28

At least one, at most small enough it fit in memory.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

wolfgang
New Cone
New Cone
Posts: 6
Joined: 04 Oct 2014 18:20

Re: Retrieve audio block size during module Open()

Postby wolfgang » 25 Feb 2015 15:47

Ok. Thanks a lot for your help!


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 34 guests