configRoute method
void
configRoute(
- SynthizerObject output,
- SynthizerObject input, {
- double gain = 1.0,
- double fadeTime = 0.01,
- BiquadConfig? filter,
Configure an fx send.
Implementation
void configRoute(
final SynthizerObject output,
final SynthizerObject input, {
final double gain = 1.0,
final double fadeTime = 0.01,
final BiquadConfig? filter,
}) {
synthizer
.check(synthizer.synthizer.syz_initRouteConfig(synthizer.routeConfig));
if (filter != null) {
synthizer.routeConfig.ref.filter = filter.config.ref;
}
synthizer.routeConfig.ref
..gain = gain
..fade_time = fadeTime;
synthizer.check(
synthizer.synthizer.syz_routingConfigRoute(
handle.value,
output.handle.value,
input.handle.value,
synthizer.routeConfig,
),
);
}