...
All scalar module variables must precede arrays in the instance structure. This is due to the manner in which audio modules are allocated and initialized by the Server. The MATLAB module generation scripts automatically reorder variables (using the function awe_reorder_variables.m). Detailed description of awe_reorder_variables.m is found in Reordering of Render Variables.
The module instance descriptor is also defined within Framework.h:
...
The memory allocation function is declared as:
void *awe_fwMalloc(size_t UINT32 size, UINT UINT32 heapIndex, int INT32 *retVal);
All memory allocation in Audio Weaver occurs in units of 32-bit words. The first argument to awe_fwMalloc() specifies the number of 32-bit words to allocate.
...