Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An optional constructor argument OUTPUTVALUE specifies whether the computed statistic should be output on an output pin. By default,

  • OUTPUTVALUE=0

...

  • (default) - the statistic is only stored internally in instantaneousValue.

...

  • OUTPUTVALUE=1 then the value of the statistic is output of the first output pin as a floating-point value.

...

  • OUTPUTVALUE=2 then the module has two output pins. The first output pin is the statistic value and the second output pin is the index at which the value occurs.

    • Using OUTPUTVALUE=2 only makes sense when statisticType=0 (max), 1 (min), or 2 (maxAbs).

Type Definition

Code Block
typedef struct _ModuleBlockStatistics
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 statisticsType;                         // Type of statistics calculated.
    FLOAT32 instantaneousValue;                   // Instantaneous output value.
} ModuleBlockStatisticsClass;

...