0
0

i’m ignorant, have pity. i don’t understand the meaning of the *userdata parameter passed to this function or what i should do with it in my callback. i’m having trouble getting that callback to work, always makes the program immediately crash. some tips would be nice. thanks

  • You must to post comments
0
0

The userdata parameter is defined in the help file as:
[quote:2r6v0xmv]
userdata: User data that is passed back into the stream callback when triggered. [/quote:2r6v0xmv]
So, basically if you want to be able to access some type of data in your callback procedure than you pass it into the userdata param and it will be available in your callback when created by FSOUND_Stream_Create. If you don’t need to pass anything to the callback than just pass 0 as the userdata because its not needed.

  • You must to post comments
0
0

i wanted to try this problem again, but i can’t make it work. my callback IS being called, i know that for sure. stepping through i found out it crashes when it returns. is there something i need to know about the way FMOD expects function callbacks to behave?

  • You must to post comments
0
0

i suspected that. seeing as i cannot use the F_CALLBACK type since i’m not even using a supported language (win32forth), it would help so much if you could tell me what the calling convention is, or just how it differs from “normal” callbacks.

edit: ( with the body of the callback commented out, it still crashes )

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.