Audiokinetic Wwise Knowledge Base

Is it possible to substitute Wwise's memory manager with our different technology, but still use user functions such as malloc() and free() ?If so, what are the steps to do so?

Yes this is possible. You can either override the whole Wwise Memory Manager by implementing the functions of the AK::MemoryMgr namespace(AkMemoryMgr.h) inside a static library named AkMemoryMgr.lib, and replace the original lib with your own.

Or you can simply implement the AK::MemoryMgr::AllocHook() and FreeHook() external functions. In the Integration Demo, these functions simply call malloc() and free(). The Wwise Memory Manager allocates memory when it creates pools, by calling these hooks (it never calls malloc() and free()directly). Then you only need to call your memory management tool's alloc and free methods.




Article Details

Last Updated
28th 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