Accessing external functions from module

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

Accessing external functions from module

Postby wolfgang » 17 Feb 2015 14:24

Hi everybody,

I am developping a new audio filter module and want to use the libsamplerate (the function src_simple()) for resampling. I also want to use the FFT function included in the WMA decoder.
I correctly include the corresponding headers (e.g. #include <samplerate.h>). Creating instances of the structs defined in the headers works fine.

However, if I try to call one of the functions of samplerate.h... Compiling succeeds!
But: At runtime, when my module is loaded, I get an error, my module cannot be loaded and the debug messages say that the function I am calling is an "undefined symbol".
Exactly the same behaviour occurs for both samplerate and FFT functions.

Apart from including the headers, what else do I have to change to be able to access those functions from my module? Some configure settings...or...?

Thanks a lot for your help!
Wolfgang

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Accessing external functions from module

Postby Jean-Baptiste Kempf » 19 Feb 2015 00:56

Do you _really_ need those dependencies?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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

Re: Accessing external functions from module

Postby wolfgang » 19 Feb 2015 10:34

Yes, I really need to resample data (HRTFs) and I really need to calculate FFTs (for fast convolution).
What is the best way to do this in my audio filter module?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Accessing external functions from module

Postby Jean-Baptiste Kempf » 19 Feb 2015 14:39

I would reimplement them. Less dependencies are good.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 12 guests