Unless I misunderstand how FMOD_CHANNEL_REUSE is supposed to be used, when I call in VB5 (using beta 28 ):[code:1zply8le]FMOD_System_PlaySound(System, FMOD_CHANNEL_REUSE, Sound, False, currentChannel)[/code:1zply8le]
The value stored in currentChannel is getting changed, even if it already contained the handle of an existing channel. I would have expected the value to remain the same as we are reusing the same channel.
Attempting to set a callback using the new value of currentChannel using:
[code:1zply8le]FMOD_Channel_SetCallback(currentChannel, FMOD_CHANNEL_CALLBACKTYPE_END, AddressOf AS_endTrack, 0)[/code:1zply8le] no longer appears to work. There is no error but the callback does not fire.
Stranger: when the sound is playing on the new channel, FMOD_System_GetChannelsPlaying appears to return 0 for the number of channels playing?
- You must login to post comments