(8.D.2.7) DCSourceInt
Overview
Source buffer holding 1 wire of constant data
Discussion
The DC source int 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, block size, and sample rate of the output pin
Type Definition
typedef struct _ModuleDCSourceInt
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32 value; // Data Value
} ModuleDCSourceIntClass;
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
value | int | parameter | 0 | 0 | -2147483648:2147483647 | Â |
Pins
Output Pins
Name: out
Description: output data
Data type: int
MATLAB Usage
File Name: dc_source_int_module.m
M=dc_source_int_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.
Â