Skip to content

DCSourceFract32

Discussion

THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE UPDATED DCSourceV2Fract32 MODULE INSTEAD.

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

Module Pack

Deprecated

ClassID

classID = 2004

Type Definition

typedef struct _ModuleDCSourceFract32
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
FLOAT32 value;                                // Data Value
fract32 valuefract32;                         // Data Value
} ModuleDCSourceFract32Class;

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

Output Pins

Name out
Description output data
Data Type fract32

Matlab Usage

File Name: dc_source_fract32_module.m 
 M=dc_source_fract32_module(NAME, NUMCHANNELS, BLOCKSIZE, SAMPLERATE) 
 Creates a source module that allows you to inject DC test data into 
 the audio processing layout.  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. 

Copyright (c) 2026 DSP Concepts, Inc.