Skip to content

SinkInt

Overview

Copies the data at the input pin and stores it in an internal buffer

Discussion

This module copies the data at the input pin to an internal buffer (value). The internal buffer data is deinterleaved. The copy operation occurs at each block process and thus the data continuously updates. This module is used to store the value of a wire and make it available to the control code, or a host processor.

To temporarily pause the copying, place the module into the INACTIVE state.

Module Pack

Standard

ClassID

classID = 110

Type Definition

typedef struct _ModuleSinkInt
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
INT32* value;                                 // Captured values
} ModuleSinkIntClass;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
value int* state 0 [32 x 1] Unrestricted

Pins

Input Pins

Name in
Description audio input
Data type int
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real and Complex

Matlab Usage

File Name: sink_int_module.m 
 M=sink_int_module(NAME) 
 Creates a sink (capture) module for use with the Audio Weaver 
 environment.  The module captures a block of integer input data and 
 stores it into an internal buffer.  Arguments: 
    NAME - name of the module. 

Copyright (c) 2026 DSP Concepts, Inc.