- Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
As noted in #8, set_calc_function
also calls (mCalcFunc)(this, 1);
.
Whether or not this is the right approach (I'm thinking probably not for the reasons in #8, as well as other Ctor/initial sample related concerns), the result is that the BoringMixer example initializes the first sample of output twice:
example-plugins/01b-BoringMixer/BoringMixer.cpp
Lines 14 to 18 in d0622ac
BoringMixer2() { | |
// New way of setting calc function. | |
set_calc_function<BoringMixer2, &BoringMixer2::next>(); | |
next(1); | |
} |
It would be great if the examples showed either a consistent way of initializing the first sample (if there is a consistent way), or, more likely, be explicit about when you need to use SETCALC
, set_calc_function
, as well as next(1)
, or directly set ZOUT(0)
. Though I realize that a larger, possibly unresolved issue.
Metadata
Metadata
Assignees
Labels
No labels