I´m trying to put this callback into a class:
FMOD_RESULT F_CALLBACK myclass::myDSPCallback(FMOD_DSP_STATE *dsp_state, float *inbuffer, float *outbuffer, unsigned int length, int inchannels, int outchannels);
but I don´t know how to set the callback.
void myclass:: …
dspdesc.read = myDSPCallback; ??? doesn´t work.
Can you help me please ?
- frotti asked 10 years ago
Oh I forgot:
dspdesc.read = myDSPCallback ( error C2440: ‘=’ : )
cannot convert from ‘FMOD_RESULT (__stdcall myclass::*)(struct FMOD_DSP_STATE *,float *,float *,unsigned int,int,int)’ to ‘FMOD_RESULT (__stdcall *)(struct FMOD_DSP_STATE
I´m using MFC.
What am I doing wrong ?
Please login first to submit.