Skip to content

BooleanSource

Overview

Source buffer holding 1 wire of data

Discussion

The Boolean source module has an internal buffer holding 1 output wire's worth of data. The internal data buffer is deinterleaved, and the module output is interleaved. 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.

Module Pack

Standard

ClassID

classID = 113

Type Definition

typedef struct _ModuleBooleanSource
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
INT32* value;                                 // Array of deinterleaved audio real data.
} ModuleBooleanSourceClass;

Variables

Properties

Name Type Usage isHidden Default Value Range Units
value int* parameter 0 [1 x 1] 0:1:1

Pins

Output Pins

Name out
Description output data
Data Type int

Matlab Usage

File Name: boolean_source_module.m 
 M=boolean_source_module(NAME, NUMCHANNELS, BLOCKSIZE, SAMPLERATE) 
 Creates a source module that allows you to inject Boolean 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. 

Copyright (c) 2026 DSP Concepts, Inc.