sh0dan
21st November 2003, 12:01
I am attempting to interface with DSP-Guru's SSRC.dll, but I've run into some problems.
1) DELIVER function.
ssrc.h (http://cultact-server.novi.dk/kpo/avisynth/ssrc.h) Defines a callback funtion that should recieve the data. Is there any way that this function could be a class member?
If I attempt to make it a member of the SSRC-class the compiler throws:
D:\dev\avisynth2\avisynth\ssrc-convert.cpp(81) : error C2664: 'init_ssrc' : cannot convert parameter 4 from 'void (float *,unsigned int)' to 'void (__cdecl *)(float *,unsigned int)'
None of the functions with this name in scope match the target type
If the function is not a member (as you can see in ssrc-convert.cpp (http://cultact-server.novi.dk/kpo/avisynth/ssrc-convert.cpp)) it compiles.
2) What is the "int** ENDING" in init_ssrc supposed to be?
3) Why is the result in getting back from SSRC amplified by a factor 10000000 (or something similar).
1) DELIVER function.
ssrc.h (http://cultact-server.novi.dk/kpo/avisynth/ssrc.h) Defines a callback funtion that should recieve the data. Is there any way that this function could be a class member?
If I attempt to make it a member of the SSRC-class the compiler throws:
D:\dev\avisynth2\avisynth\ssrc-convert.cpp(81) : error C2664: 'init_ssrc' : cannot convert parameter 4 from 'void (float *,unsigned int)' to 'void (__cdecl *)(float *,unsigned int)'
None of the functions with this name in scope match the target type
If the function is not a member (as you can see in ssrc-convert.cpp (http://cultact-server.novi.dk/kpo/avisynth/ssrc-convert.cpp)) it compiles.
2) What is the "int** ENDING" in init_ssrc supposed to be?
3) Why is the result in getting back from SSRC amplified by a factor 10000000 (or something similar).