...
Each audio module has a set of 5 functions associated with it. This section describes the arguments to each of the functions.
Constructor Function
Anchor | ||||
---|---|---|---|---|
|
This function is usually generated by MATLAB but at times it needs to be hand written – especially if the module does more than just allocate memory. Audio Weaver names the constructor function using the convention
...
A few more things to keep in mind regarding masks. When an array variable is set, the bit mask corresponding to the array is set as expected. However, the Set function is not told which portion of the array has been changed. Finally, since the mask is only 32 bits in length, it is possible to run out of unique bits if the instance structure is very long. The high bit of the mask, bit 31, has special meaning. When this bit is set, it indicates that at least one of the high order instance variables has changed. However, you don't know precisely which one.
Get Function
Anchor | ||||
---|---|---|---|---|
|
This function is rarely used in practice and translates low-level variables to higher-level variables. This function has the same signature as the Set function
...