So, I am using the FMOD api, and it is really a C api.
Not that it's bad or something else. Its just that it doesnโt interact well with C ++ code.
For example, using
FMOD_Channel_SetCallback( channel, callbackFunc ) ;
He wants a C-style function for callbackFunc , but I want to pass her a member function of the class.
I ended up using the Win32 trick, making it a static function. Then it works as a callback in FMOD.
Now I need to crack my code to make some of them static, just to take into account FM-C Cess.
I wonder if this is possible in FMOD, or if there is a connection, to associate a callback with a specific function of a member of an instance of a C ++ object (and not a static function). That would be much smoother.
c ++ c fmod
bobobobo Mar 10 '10 at 20:30 2010-03-10 20:30
source share