Page 1 of 1

Audio filter development - newbie question

Posted: 11 May 2011 16:18
by bero7
Hi all,

I'm looking into vlc modules development and am trying to include a simple delay module into vlc player. I looked through "hacker's guide" and got the basics there but I have some questions, hoping someone can help me.

So I understand, following the simple example, I can just write a delay.cpp where I specify by the template the capabilities, Open, Close, doWork and so on.
The thing is, I have my algorithm already in a static lib. I have a delay.lib (or .a) and fft.lib (or .a) for doing fft transform I need (it's in frequency domain, nevermind that now).

My question is, how can I use my libs directly. I didn't quite get the story with plugins vs modules? Do I need to have a dynamic lib? If so, why is rebuilding of vlc player necessary? Can I just specify an interface file and put the libs there together with header files? with of course adjusting the Modules.am---or what's the general procedure in this case?

Thanks for all the help
bero

Re: Audio filter development - newbie question

Posted: 11 May 2011 16:58
by Rémi Denis-Courmont
You can link a VLC plugin against a static library, but you need to ensure that the library is built as PIC.

See a52tofloat32 for example.

Re: Audio filter development - newbie question

Posted: 11 May 2011 17:16
by bero7
Thanks for the reply Remi,

but I'm not sure I get it.

In the audio_filter/converter folder, a52tofloat32 is no different than other examples? I see some dll's in the libs folder. How exactly can I link my static libs? what would be the correct procedure...

Other thing is, so If I link my libs dynamically, say I have a final dll to use, could I just drop it in the folder there? why would I need to rebuild the vlc player again, which I understood from wiki and some tutorials...(unless I'm wrong)

Thanks for the help

Re: Audio filter development - newbie question

Posted: 11 May 2011 19:29
by Rémi Denis-Courmont
a52tofloat32 links with liba52, which is static (Windows) or dynamic (Linux, usually) depending on the platform.

Re: Audio filter development - newbie question

Posted: 18 May 2011 11:41
by bero7
I'm not getting far hear. Can someone please help me by answering a simple thing..or pointing to the right direction.

How can I add a filter without recompiling it's code..How do I use my existing libs to add an audio_filter, whether it's static lib or dll. If I have a dll what do I do with it?

Thank you very much