How would you share a "global" variable for each plugin instance?

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

;) I actually do this kind of "POD", passing the main plugin instance instead (which I can derivate almost everythings).

Thanks to everybody!

Post

Nowhk wrote:;) I actually do this kind of "POD", passing the main plugin instance instead (which I can derivate almost everythings).
Well, my point was that separating the "common stuff" and the actual plugin into two separate objects (one containing the other) can simplify code. Yes, you can pass the whole plugin object around and it works, but it can add some code-level complexity and couple your "common stuff" into your actual plugin more than if you kept them logically separate.

YMMV, just thought I'd share. :)

Post Reply

Return to “DSP and Plugin Development”