Skip to main content
Skip table of contents

DCSourceV2Fract32

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
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

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

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

CODE
 M=dc_source_v2_fract32_module(NAME, NUMCHANNELS, BLOCKSIZE, SAMPLERATE, CONTROLPIN)
 Creates a source module that allows you to inject DC test data into
 the audio processing layout. Also has optional input control pin to scale
 the data value to be written on ooutput pin. 
 Arguments:
    NAME - name of the module.
    NUMCHANNELS - number of interleaved channels in each output pin.
    BLOCKSIZE - number of samples per output channel.
    SAMPLERATE - sample rate of the output signal, in Hz.
    CONTROLPIN - boolean to add control input pin or not.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.