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 answered 3 years ago
Please login first to submit.