I do not remember all the specifics (because I do not need to, I just remember not to do it), but the rule was something like the following:
If you think your plugin might be connected to FxBus, then do not use input registers more than once in your code.
Something like that, so it was kind of an optional thing, and in some cases you can save some gprs by using them more than once in the code.
I remember it having something to do with the naked I/O registers used by FxBus, but I do not remember the specifcs (IIRC, Max M. explained it somewhere in the forum). I think that it only applies to FxBus (and not ProFx:Src plugins using FxBus), but I could be wrong.
AFAIK, it is not likely something to be *fixed* by kX, and unfortunately there is no list that says that such-and-such plugins should not be connected directly to FxBus, so I guess you have to figure this out yourself.
BTW: 'Stereo Mix + Gain' has another bug that makes it pretty much unusable anyway.
<edit>
Here is some info (from kX Help) about the above, and some other rules:
Quote:
1. (absolute) Use all of input/output registers you've declared in code, living unused may cause unexpected execution of program. Comment out or remove unused register of such type.
2. Do not use input registers in code more then once, this limitation relaited to current format of binary dsp program (atleast rfx one) and may cause unexpected execution.
3. Do not use input/output registers in single instruction more then once, in future it may cause unpredictable DSP behaviour due to nature of Emu10kx architecture. (For now it's ok to do this).
|
</edit>