View Single Post
Old 03-25-2019, 01:10 PM   #1
Human being with feelings
Join Date: Apr 2018
Posts: 248
Default How to update a parameter from Process()?

I would like to export the gain value from a gate plugin so a host can record it as automation data (as a control signal for other tracks, plugins, etc).

1) I have added a parameter to the plugin parameter enum list called "ksidechainsig"

2) I have set up a parameter in the constructor like this: GetParam(ksidechainsig)->InitDouble("Gate signal", 0.5, 0.0, 1.0, .01, "");

3) And I output a data point once per Process call using this: InformHostOfParamChange(ksidechainsig, gategain);

This approach is working great on most hosts but crashes Cakewalk/SONAR. The plugin passes a signal when idle but crashes with "stack overflow" the instant PLAY is initiated (please see attached screenshot from debugger). If I comment out "InformHostOfParamChange()" the plugin works perfectly otherwise.

What is causing this - and why only in Cakewalk? Is it a bug in MY code or in Cakewalk?
Attached Files
File Type: pdf CbB crash.pdf (32.9 KB, 32 views)

Last edited by Nonlinear; 03-25-2019 at 03:00 PM.
Nonlinear is offline   Reply With Quote