0
0

hi,

its nearly the same question as before, but maybe alittle more specific.

I dont understand the way of reusing channel and the docs are confusing me:
As in the docs:
[code:2pn2wbfe]
FMOD_RESULT System::playDSP(
FMOD_CHANNELINDEX channelid,
FMOD::DSP * dsp,
bool paused,
FMOD::Channel ** channel
);
[/code:2pn2wbfe]
Says FMOD_CHANNELINDEX channelid same name like in

[code:2pn2wbfe]
FMOD_RESULT System::getChannel(
int channelid,
FMOD::Channel ** channel
);

[/code:2pn2wbfe]

ok lets make a sample:
i have a system -> create a channel -> create a stream -> playsound in channel with pause

now how te reuse?
i call getChannel and what to do with the channel_id which i retrieve?

When i specify FMOD_CHANNEL_REUSE and send my old channel pointer along with it, its going to be reused, the pointer adress stays the same, so i guess its reused, BUT and no finally my problem:

The volume and the dsps are gone from that channel.
do i have to set them everytime i play a new sound on a channel again?

thanks in advance,
Julian

  • You must to post comments
0
0

You could stick the DSP’s etc on a channelgroup, then add the channel to that each time (or it may actually remember its already attached – I’ve not tested)

  • You must to post comments
0
0

i just thought about that.. ill try it ๐Ÿ˜‰

  • You must to post comments
0
0

works perfectly ๐Ÿ˜‰

  • You must to post comments
0
0

Did you have to re-add them, or did it remember the channel was attached? (For people having similar problems – and using search :) )

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.