Fract32ToInt
Discussion
THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE TypeConversion MODULE INSTEAD.
This module converts 32-bit fractional-point values to 32-bit integer values. When performing the conversion, the module rounds to the nearest fractional value. The module has N input and N output pins, and the size of the ith output pin must equal the size of the ith input pin.
When bypassed the module is still active and continues to perform the conversion.
Module Pack
Deprecated
ClassID
classID = 2015
Type Definition
typedef struct _ModuleFract32ToInt
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
} ModuleFract32ToIntClass;
Pins
Input Pins
| Name | in1 |
| Description | Input signal |
| Data type | fract32 |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
Output Pins
| Name | out1 |
| Description | Input signal |
| Data Type | int |
Matlab Usage
File Name: fract32_to_int_module.m
M=fract32_to_int_module(NAME, NUMPINS)
Creates a fractional to integer conversion module for use with the
Audio Weaver environment.
Arguments:
NAME - name of the module.
NUMPINS - an optional argument allows you to specify the number of
input and output pins. By default, NUMPINS=1.
Copyright (c) 2026 DSP Concepts, Inc.