Audio filter development - newbie question

This forum is about all development around libVLC.
bero7
Blank Cone
Blank Cone
Posts: 25
Joined: 11 May 2011 16:06

Audio filter development - newbie question

Postby bero7 » 11 May 2011 16:18

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

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

Re: Audio filter development - newbie question

Postby Rémi Denis-Courmont » 11 May 2011 16:58

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

bero7
Blank Cone
Blank Cone
Posts: 25
Joined: 11 May 2011 16:06

Re: Audio filter development - newbie question

Postby bero7 » 11 May 2011 17:16

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

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

Re: Audio filter development - newbie question

Postby Rémi Denis-Courmont » 11 May 2011 19:29

a52tofloat32 links with liba52, which is static (Windows) or dynamic (Linux, usually) depending on the platform.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

bero7
Blank Cone
Blank Cone
Posts: 25
Joined: 11 May 2011 16:06

Re: Audio filter development - newbie question

Postby bero7 » 18 May 2011 11:41

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests