0
0

Visual C++ problem with FMOD Ex.

I might be stupid, but I can’t assign a class function to the pcmreadcallback member of FMOD_CREATESOUNDEXINFO.

I get a compilation error.

To workaround this, I have to put the function outside of a class.

Code example :

1)
l_soundex.pcmreadcallback=seq_system::pcmreadcallback;

error C3867: ‘SEQ::seq_system::pcmreadcallback’: function call missing argument list; use ‘&SEQ::seq_system::pcmreadcallback’ to create a pointer to member

2)
l_soundex.pcmreadcallback=&seq_system::pcmreadcallback;
error C2440: ‘=’ : cannot convert from ‘FMOD_RESULT (__stdcall SEQ::seq_system::* )(FMOD_SOUND *,void *,unsigned int)’ to ‘FMOD_SOUND_PCMREADCALLBACK’

3)
l_soundex.pcmreadcallback=mypcmreadcallback; // outside class
No problem

  • You must to post comments
0
0

Thanks so much

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.