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
- karmacop911 asked 13 years ago
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 )
The userdata parameter is defined in the help file as:
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.
- Paranoid_Android answered 13 years ago
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?
Please login first to submit.