...
% AudioWeaverModule [This tag makes it appear under awe_help]
Code Markers and Template Substitution
Anchor | ||||
---|---|---|---|---|
|
Template substitution is an automated method of replacing strings within a file to generate an output file. The process starts with a template file and Audio Weaver provides separate templates for the generated .c and .h files:
...
ARRAYVAR and TYPE are already known to MATLAB. SIZE and HEAP must be separately specified as C code to embed into the generated code. The string SIZE is specified in MATLAB by setting field .arraySizeConstructor field of the array variable. Similarly, HEAP is specified by setting the .arrayHeap field of the array variable. For an example, see the Peak Hold module in Section 7.2
...
Specifying Module Constructor Arguments in Subsystems
Anchor | ||||
---|---|---|---|---|
|
This advanced technique is frequently used when compiling subsystems to generate new module classes. Audio Weaver automatically generates a Constructor function for the compiled subsystem, and this constructor in turn calls the constructor functions of the internal modules. The difficulty arises because the arguments to the internal constructor functions are hard coded in the generated file based on the values at code generation time. This is not always the desired behavior.
...