0
0

I had a FMOD_CHANNEL_CALLBACKTYPE_END callback triggering for a sound, in that callback i tried to call

channel->setChannelGroup(something_else)

and it would throw an exception (with no debug or details regarding that exception).

so i guessed that perhaps the channel is invalidated already once you reach that callback.

so given the channel is invalidated, does that mean it is removed from the ChannelGroup it is a member of?

  • You must to post comments
0
0

[quote:23hvp20g]I had a FMOD_CHANNEL_CALLBACKTYPE_END callback triggering for a sound, in that callback i tried to call
channel->setChannelGroup(something_else)
and it would throw an exception[/quote:23hvp20g]
I don’t get an exception when I follow these steps. I’m not exactly sure why you’re trying to ‘set’ the channel group on a channel which is about to disappear so I figured maybe you meant to say ‘get’ and I tried that to and that works fine for me as well.

[quote:23hvp20g]so I guessed that perhaps the channel is invalidated already once you reach that callback. [/quote:23hvp20g]
No, the purpose of the callback is to access any of the channel’s data before it’s gets invalidated.

  • You must to post comments
0
0

When a channel stops it becomes ‘free’ and does not belong to any channelgroup so you dont need to reset it.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.