...
The module can also be configured to output zeros between transitions. The variable fadeTime specifies the silence period, in msec, when transitions occur.
See Also: Multiplexor MultiplexorV2Fract32 Router RouterSmoothed RouterSmoothedFract32 SampleMultiplexorControl
Type Definition
Code Block |
---|
typedef struct _ModuleMultiplexorV2 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 index; // Specifies which input pin to route to the output. The index is zero based. FLOAT32 smoothingTime; // Time constant of the smoothing process FLOAT32 fadeTime; // Silence time in crossfade INT32 isControl; // Indicates if the index is controlled by an external signal FLOAT32 smoothingCoeff; // Smoothing coefficient FLOAT32 oldSrcGain; // Instanteous gain being applied to the old source. This is an internal variable used in the smoothing process FLOAT32 newSrcGain; // Instanteous gain being applied to the new source. This is an internal variable used in the smoothing process INT32 fadeState; // State variable for determining when to transitioning between inputs INT32 fadeStateInit; // Derived from fadeTime, determines number of blocks to wait before switching input pins INT32 oldIndex; // This is the index that is currently being used INT32 newIndex; // This is the index being transitioned to } ModuleMultiplexorV2Class; |
...