Audiokinetic Wwise Knowledge Base

Is event preparing/unpreparing (AK::SoundEngine::PrepareEvent()) ref-counted?

Yes, AK::SoundEngine::PrepareEvent() keeps a ref count of prepared events. This means that if AK::SoundEngine::PrepareEvent() has been called 3 times to prepare a given event, it must be called 3 times to unprepare it before it is actually unloaded. This is useful if the same event can be prepared/unprepared in several places in your game code: You do not need to keep track of the prepare/unprepare calls since the sound engine does it for you.
 
Related topic: LoadBank / UnloadBank do NOT keep a refcount of loaded soundbanks. If a bank is already loaded, a second LoadBank for the same bank has no effect, so the next UnloadBank WILL unload the bank immediately.




Article Details

Last Updated
20th o March, 2008

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue