crossfade

Files: crossfade.h, crossfade.c

Crossfade two signals. This module will perform a linear crossfade between two input signals.

Functions

sp_crossfade_create(sp_crossfade **crossfade)
sp_crossfade_init(sp_data *sp, sp_crossfade *crossfade)
sp_crossfade_compute(sp_data *sp, sp_crossfade *crossfade, SPFLOAT *in1, SPFLOAT *in2, SPFLOAT *out)
sp_crossfade_destroy(sp_crossfade **crossfade)

Mandatory Parameters


Optional Parameters

pos: Crossfade position. 0 = all signal 1, 1 = all signal 2
(Default value: 0.5)

Inputs

in1: Input signal 1.
in2: Input signal 2.

Outputs

out: signal output.