DCSource
Discussion
THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE DCSourceV2 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 = 2005
Type Definition
typedef struct _ModuleDCSource
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
FLOAT32 value; // Data Value
} ModuleDCSourceClass;
Variables
Properties
| Name | Type | Usage | isHidden | Default Value | Range | Units |
|---|---|---|---|---|---|---|
| value | float | parameter | 0 | 1 | -10:10 |
Pins
Output Pins
| Name | out |
| Description | output data |
| Data Type | float |
Matlab Usage
File Name: dc_source_module.m
M=dc_source_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.