Page 1 of 1

Accessing external functions from module

Posted: 17 Feb 2015 14:24
by wolfgang
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

Re: Accessing external functions from module

Posted: 19 Feb 2015 00:56
by Jean-Baptiste Kempf
Do you _really_ need those dependencies?

Re: Accessing external functions from module

Posted: 19 Feb 2015 10:34
by wolfgang
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?

Re: Accessing external functions from module

Posted: 19 Feb 2015 14:39
by Jean-Baptiste Kempf
I would reimplement them. Less dependencies are good.