0
0

There is something strange about this (or is it just me?):
I play a sound (System::PlaySound) and keep the pointer of the channel for further processing (for example update of the listener position). So far, everything ok. The problem occur in the pointer returned by the FMOD_CHANNEL_CALLBACKTYPE, when the channel is ended: the pointer returned isn’t the same: there is a 1octet offset…
Is that what was intended?
If so, is there any way to test which channel is ended, other than testing the pointer returned and the original pointer (which are different then :/)?

thx

  • You must to post comments
0
0

sorry, wrong copy/paste :)
the FMOD_CHANNEL_CALLBACKTYPE_END
and I’m using the 40023 beta version

  • You must to post comments
0
0

exactly :)

thx a lot

  • You must to post comments
0
0

Argh, the correction of this bug caused a new one :(.

When the program catch the FMOD_CHANNEL_CALLBACKTYPE_END message, the pointer is the same as the original one, that’s good, but the handle to this channel seems to be invalid, so I can’t get access to its user data for example (I used pMyChannel->getUserData(&pMyUserData) with the previous version, to do some processing to objects of my program linked to this channel). That may be logical, because the channel has ended, but not very practical I think (in this case for example). Do you think it’s possible for you to notify of the ending sound just before the channel is actually destroyed?

  • You must to post comments
0
0

woops, sorry ’bout that. I read it too quickly. Next time will read the forum twice before posting ;).

  • You must to post comments
0
0

This is weird. I’m using the latest version of FMODEx, and I’m running into this exact problem where the pointer to the channel in the callback is different from the original.

Is there a workaround for this?

  • You must to post comments
0
0

That is weird because there is no such problem here, that stuff hasnt changed in about a year and is working fine here.

I play a voice, the pointer is 0x10170002, and this same value is passed into the callback for syncpoint, or end callback.

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.