In a module, create a global method like this:
myCallback(sound as integer, data as integer, datalen as integer) as
integer
Then, to assign it you'll do this::
SomeFMODFunction(AddressOf myCallback)
HTH,
Erick
On Jun 26, 2006, at 1:34 PM, Aleksi Strandberg wrote:
I'm working with FMOD sound engine. I would need to use one of the
callbacks for feeding the sound stream.
I'm having trouble understanding the syntax of the function. I
don't know much about C.
Here's the syntax as in the documentation:
Syntax
FMOD_RESULT F_CALLBACK FMOD_SOUND_PCMREADCALLBACK(
FMOD_SOUND * sound,
void * data,
unsigned int datalen
);
And here's some code from the examples:
FMOD_RESULT F_CALLBACK pcmreadcallback(FMOD_SOUND *sound, void
*data, unsigned int datalen)
Now, the values are no problem, but i don't understand how to write
the function name properly.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>