Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Source buffer holding 1 wire of constant data with optional input control pin to scale DC value

Discussion

The DC source module has an internal variable holding one data value. The module continuously fills the output wire with the internal data value. Since this is a source module, you must specify the number of channels, blockSize, and sample rate of the output pin

Type Definition

Code Block
typedef struct _ModuleDCSourceV2Fract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 value;                                // Data Value
    fract32 valuefract32;                         // Data Value
} ModuleDCSourceV2Fract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

value

float

parameter

0

0.99

-1:1

valuefract32

fract32

derived

0

0.99

Unrestricted

Pins

Input Pins

Name: control

Description: Input control signal

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: output data

Data type: fract32

MATLAB Usage

File Name: dc_source_v2_fract32_module.m

...