0
0

I downloaded v4.04.29 today in order to get the new multiple project support and noticed a couple of things:

1) If I load a project and an eventgroup, play an event from it, stop it and finally unload the eventgroup the sound that was played and stopped will re-trigger an play for a second or so and then disappear. Why???

2) getProject and getProjectByIndex doesn’t work which means I have to use EventSystem::load. Also I can’t unload a specific project since EventSystem::unload doesn’t take any params. By design or a bug?

3) If multiple projects are loaded there will still be a problem with ids since the ids still aren’t unique over all projects, only within a project. Will this be fixed?

  • You must to post comments
0
0

[quote:3ji02fy6]1) If I load a project and an eventgroup, play an event from it, stop it and finally unload the eventgroup the sound that was played and stopped will re-trigger an play for a second or so and then disappear. Why??? [/quote:3ji02fy6]

I’ll check that out.

[quote:3ji02fy6]2) getProject and getProjectByIndex doesn’t work which means I have to use EventSystem::load. Also I can’t unload a specific project since EventSystem::unload doesn’t take any params. By design or a bug?
[/quote:3ji02fy6]

Use EventSystem::load to load projects. This function returns an EventProject handle or you can query what projects are loaded by using EventSystem::getProject/getProjectByIndex. Use EventProject::release to unload a project.

[quote:3ji02fy6]3) If multiple projects are loaded there will still be a problem with ids since the ids still aren’t unique over all projects, only within a project. Will this be fixed?[/quote:3ji02fy6]

It is fixed. ID’s can only ever be unique per project unless we add a layer on top of projects like a "workspace" or something, otherwise how can FMOD anticipate (at build time) all the projects that you’ll ever want to load at runtime?

  • You must to post comments
0
0

[quote:knpf3ue3]Use EventSystem::load to load projects. This function returns an EventProject handle or you can query what projects are loaded by using EventSystem::getProject/getProjectByIndex. Use EventProject::release to unload a project.
[/quote:knpf3ue3]

I guess you missed out that release function in the docs. Anyways, that seems to solve the problem.

[quote:knpf3ue3]It is fixed. ID’s can only ever be unique per project unless we add a layer on top of projects like a "workspace" or something, otherwise how can FMOD anticipate (at build time) all the projects that you’ll ever want to load at runtime?[/quote:knpf3ue3]

Exactly. If you ever do add such a layer then it would be nice to at least have uids for projects so we don’t have to use strings for loading. For now we have this layer in our code and maybe that’s for the best anyway. I mean we still need to know which projects to load and so on…

  • You must to post comments
0
0

I’ve fixed the docs for our next release. Thanks Ljudas.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.