0
0

Hi,
I’m having a problem with fmodex 4.04.41 (fmod designer 1.4.41)…

Program crashes after number of [i:3vhx5ojr]event->start() – event->stop()[/i:3vhx5ojr] calls exceed passed through init function maxchannels.

But that only happens on events with sound instances marked as "loop and play to an end" in event editor…

e.g. tried it on a single event (maxchannels = 32) like that:

[code:3vhx5ojr]for(int i=0; i<33; i++)
{
group->getEventByIndex(evId, EVENT_DEFAULT, &event);
event->setCallback(event_cb, this);
event->start();
...
event->setCallback(NULL, NULL);
event->stop();
}[/code:3vhx5ojr]

^^ Crashes on [i:3vhx5ojr]event->start()[/i:3vhx5ojr] when [i:3vhx5ojr]i == 32[/i:3vhx5ojr], thou all the previous functon return [i:3vhx5ojr]FMOD_OK[/i:3vhx5ojr]…but works fine with "loop and cutoff" or "oneshot"…
any solutions?

  • You must to post comments
0
0

Did you check the error code? You probably got a null pointer and didnt check it.

  • You must to post comments
0
0

no, i dont get null pointer, and i said i get FMOD_OK all the time…

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.