0
0

hey,
i would like to know if when a stream reaches end, the channel get free automatically ?
because any attempt to play it again from start, fails.

thanks in advanced.

  • You must to post comments
0
0

another question :
when creating a channel as a sound does it get free when it reaches end ?

  • You must to post comments
0
0

Yes when it is ended, you cannot use it any more. There is no ‘free’ it is just stopped, and comes from a pool of channels you created in System::init with maxchannels variabe.

  • You must to post comments
0
0

thank you very much

  • You must to post comments
0
0

Hi,

regarding this, I would like to understand if there is any autorelease mechanism..I try to explain the issue I am facing.

I’ve many streaming dialogues sententeces in my code, and I expected after a streaming sentence (sound) finished it released automatically but it’s not.
memory occupied keeps increasing.

I tought to put a callback and at FMOD_CHANNEL_CALLBACKTYPE_END for these streaming channels and do a release when sound ended, but this produced
weird results when calling channell::stop as it was probably trying to access sound inside the stop() code after it was released.

So in the callback I’ve just put a flag to say "hey after stop finished, release the sound" …and it works fine for a while but a certain point whole system crashes/hangs inside a stop() call…any thread conflict? data race ?
Is there a clean and easy way to automatically release streaming sound at it’s end ?

Thanks in advance for any help

MimmoCoder

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.