0
0

Hi,

I’ve seen that EventQueue and EventQueueEntry were added to the API but the documentation on them is incomplete. When are you planning to update it?

I´m asking because I´m about to implement a system that seems very similar to that, and I don´t want to replicate existing functionality.

Thanks.

  • You must to post comments
0
0

…I too wanted to play with this sooner rather than later, so I’ve been hacking and guessing how this works today!

Seems you can create the EventQueue from the EventSystem then add EventQueueEntry objects which will play automatically as they reach the front of the queue. It took me a while to figure that Events wrapped by an EventQueueEntry need to be created with the FMOD_EVENT_INFOONLY mode otherwise createEventQueueEntry() fails. Also if eventsystem->unload() is called then this also unloads the EventQueue and will need to be re-created. (I’m experimenting with this for interactive dialogue and the moment and discovered this when unloading to switch languages and reload the appropiate language FEV.)

Something like this seems to work great:

[code:vfj1l8nx]
FMOD::EventQueue *queue;
ERRCHECK(result = eventsystem->createEventQueue(&queue));

        FMOD::Event *event;
        FMOD::EventQueueEntry *entry;

        ERRCHECK(result = eventsystem->getEvent("project/group/event00", FMOD_EVENT_INFOONLY, &event));
        ERRCHECK(result = eventsystem->createEventQueueEntry(event, &entry));
        ERRCHECK(result = queue->add(entry));

        ERRCHECK(result = eventsystem->getEvent("project/group/event01", FMOD_EVENT_INFOONLY, &event));
        ERRCHECK(result = eventsystem->createEventQueueEntry(event, &entry));
        ERRCHECK(result = queue->add(entry));

...etc...
[/code:vfj1l8nx]

… just not sure what the memory management contract is.

  • You must to post comments
0
0

Oops, I’ll update the docs for our next release, if not earlier.

Cheers,

  • You must to post comments
0
0

Thanks Martin and Andrew.

Andrew, when is the next release scheduled to?

  • You must to post comments
0
0

No EventQueue or EventQueueEntry docs yet in 4.xx.04. Does next release mean 4.34.00 and 4.35.00?

  • You must to post comments
0
0

These docs should go out in this week’s release. Apologies for the delay.

  • You must to post comments
0
0

Thanks Andrew…

  • You must to post comments
0
0

😀

Thanks!

  • You must to post comments
0
0

Still not in 4.xx.05 on Mac at least…! Are they in the windows distro?

  • You must to post comments
0
0

Ugh, build system weirdness. Yes, the updated docs are in the windows distros. Either download one of them or let me know and I’ll give you a link to the updated docs. They’ll be in the next release of the mac distro for sure.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.