I figured it would be more appropriate to start a new thread rather than digging up an old one, so here goes.
[b:331wuxkv]In the latest version of FMODEx, FMOD_CHANNEL_CALLBACK returns a different pointer to the channel from the original[/b:331wuxkv], and this problem was originally reported and supposedly fixed in this thread.
http://52.88.2.202/forum/viewtopic.php?t=3802
But I am running across it. Any ideas?
- Eliwood914 asked 11 years ago
- You must login to post comments
See reply to link in this thread, you’re going to have to repro this because all tests I do are contrary to what you are saying. It can’t have suddenly stopped working because that stuff hasnt been touched in nearly a year or so. It works fine here.
- Brett Paterson answered 11 years ago
- You must login to post comments
Perhaps a better question is this. What I was trying to do was to store a pointer to the channel playing any given sound, and if that same sound was played again, it would stop that sound and would play it again from scratch.
So it’s a mix of wanting only 1 playing instance of a sound as well as forcing it to restart if the system attempts to play it again.
- Eliwood914 answered 11 years ago
- You must login to post comments
What about the callback? Where does this come into it?
All you have to do to make it re-use a channel for the same sound is pass the channel handle back into playsound and use FMOD_CHANNEL_REUSE.
That, or simply call channel->stop() then System::play and get the new channel handle, i don’t see what problem your having.
- Brett Paterson answered 11 years ago
- You must login to post comments
Please login first to submit.