0
0

The FMOD_EVENT_INFO structure has been extended and you are now required to initialise it before calling Event::getInfo(). If you don’t initialise it then your program will probably crash.

Cheers,

  • You must to post comments
0
0

[quote="andrew":3qmkfbif]The FMOD_EVENT_INFO structure has been extended and you are now required to initialise it before calling Event::getInfo(). If you don’t initialise it then your program will probably crash.

Cheers,[/quote:3qmkfbif]
Ok, I’ve just tried to take this advice into account and I’m wondering if I’m correct or not:
– this is about the 2 structure info called "numinstances" and "instances"
– we just have to set them to 0 before calling event->getInfo() ?
or is there other info to be set ?

(I may be wrong but I did’nt find this point in the help document)

Thanks.

  • You must to post comments
0
0

Yes, set all members that you don’t care about to 0. memset(&info, 0, sizeof(info)); is the safest and most future-proof way of doing this.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.