/
(8.D.1.2) SourceInt
(8.D.1.2) SourceInt
Overview
Source buffer holding 1 wire of integer data
Discussion
The source module has an internal buffer holding 1 output wire's worth of data. The module continuously copies the data from the internal value buffer to the output wire. Since this is a source module, you must specify the number of channels, blockSize, and sample rate of the output pin
Type Definition
typedef struct _ModuleSourceInt
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32* value; // Array of interleaved audio data
} ModuleSourceIntClass;
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
value | int* | parameter | 0 | [16 x 2] | Unrestricted |
|
Pins
Output Pins
Name: out
Description: output data
Data type: int
MATLAB Usage
File Name: source_int_module.m
M=source_int_module(NAME, NUMCHANNELS, BLOCKSIZE, SAMPLERATE, ISCOMPLEX)
Creates a source module that allows you to inject integer data into
the audio processing layout. Arguments:
NAME - name of the module.
NUMCHANNELS - number of interleaved channels in each output pin.
By default, NUMCHANNELS = 1;
BLOCKSIZE - number of samples per output channel. By default,
BLOCKSIZE = 32.
SAMPLERATE - sample rate of the output signal, in Hz. By default,
SAMPLERATE = 48000.
ISCOMPLEX - Boolean indicating whether the source module holds complex
data. By default ISCOMPEX = 0 (real).
, multiple selections available,
Related content
(8.D.2.1) SourceInt
(8.D.2.1) SourceInt
More like this
(8.D.2.5) SourceInt
(8.D.2.5) SourceInt
More like this
(8.D.1.3) SourceInt
(8.D.1.3) SourceInt
More like this
(8.D.2.2) SourceInt
(8.D.2.2) SourceInt
More like this
(8.D.2.2 ) SourceInt
(8.D.2.2 ) SourceInt
More like this
(8.D.2.4) SourceInt
(8.D.2.4) SourceInt
More like this