0
0

hello, i have a problem with this api, in fact it’s more a problem of c++ knowledge !!!

I wrote a class Trackswith function like init, play, stop etc….

in teh init method, i wrote this : FSOUND_Stream_SetEndCallback(stream,endcallback,0) with endcall back, a method of my class. but i have this error
[i:q6ch7qco] argument of type signed char (Tracks::)(FSOUND_STREAM*, void*, int, int)' does not matchsigned char ()(FSOUND_STREAM, void*, int, int)'[/i:q6ch7qco]

How do i have to declare endcallback ?
thanks.

  • You must to post comments
0
0

My C++ is not so good either
so i might be wrong
but i think that it doesn’t work because your callback is a member of your class Tracks.
i think it will work if it’s outside the class

  • You must to post comments
0
0

I think the same than you. the trouble is that i need to acces member function of my “window class”, so i don’t know how i can do that is the function “endcallback” is outside my class !!!!

@+

  • You must to post comments
0
0

Callbacks must be declared [b:yqmpqp5u]static[/b:yqmpqp5u] in C++.

  • You must to post comments
0
0

WAOW, it works, thanks a lot KarlKox. I wondered in the past what’s the use of static function. I still don’t understant exactly what it is. But yet i know is useful 😉

Thanks !!!

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.