Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Source buffer holding 1 wire of data

Discussion

The source module has an internal buffer holding 1 output wire's worth of floating point 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.

...

Additionally, this module makes the wire information available as internal variables. Block size, channel number, sample rate and signal complexity can be accessed in MATLAB code, source code, or in a layout using the ParamGet module.

Type Definition

Code Block
typedef struct _ModuleSourceProperties
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 BlockSize;                              // Block Size
    INT32 NumChannels;                            // Number of Channels
    INT32 SampleRate;                             // Sample Rate
    INT32 IsComplex;                              // Is Complex
    FLOAT32* value;                               // Array of interleaved audio data.
} ModuleSourcePropertiesClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

BlockSize

int

const

0

16

Unrestricted

NumChannels

int

const

0

2

Unrestricted

SampleRate

int

const

0

48000

Unrestricted

IsComplex

int

const

0

0

Unrestricted

value

float*

parameter

0

[16 x 2]

Unrestricted

Pins

Output Pins

Name: out

Description: output data

Data type: float

MATLAB Usage

File Name: source_properties_module.m

...